Nomis content type metadata is included in annotation tags, in the form of contenttype/<contenttype> in the annotationtitle column in the annotations.annotation list-column returned from nomis_data_info(). For example, the content types returned from dataset "NM_1658_1", using nomis_data_info("NM_1658_1"), are "geoglevel", "2001census" and "sources".

nomis_content_type(content_type, id = NULL)

Arguments

content_type

A string with the content type to return metadata on.

id

A string with an optional content_type id.

Value

A tibble with metadata on a given content type.

Examples

# \donttest{
a <- nomis_content_type("sources")

tibble::glimpse(a)
#> Rows: 16
#> Columns: 6
#> $ description <chr> "A count of home Civil Service employees. It excludes the …
#> $ id          <chr> "acses", "aps", "ashe", "bres", "census", "cc", "dwp", "va…
#> $ name        <chr> "Annual Civil Service Employment Survey", "Annual Populati…
#> $ type        <chr> "DataSource", "DataSource", "DataSource", "DataSource", "D…
#> $ item        <list> <NULL>, <NULL>, <NULL>, <NULL>, [<data.frame[5 x 5]>], <N…
#> $ status      <chr> NA, NA, NA, NA, NA, NA, NA, "archived", NA, NA, NA, NA, NA…

b <- nomis_content_type("sources", id = "census")

tibble::glimpse(b)
#> Rows: 5
#> Columns: 9
#> $ description      <chr> "Census data from the 1961, 1981, 1991, 2001 and 2011…
#> $ id               <chr> "census", "census", "census", "census", "census"
#> $ item.description <chr> "The 2011 Census was taken on 27th March 2011. The fu…
#> $ item.id          <chr> "census_2011", "census_2001", "census_1991", "census_…
#> $ item.item        <list> [<data.frame[13 x 5]>], [<data.frame[6 x 5]>], <NULL>…
#> $ item.name        <chr> "2011 Census", "2001 Census", "1991 Census", "1981 C…
#> $ item.type        <chr> "DataSourceSubGroup", "DataSourceSubGroup", "DataSour…
#> $ name             <chr> "Census of Population", "Census of Population", "Cens…
#> $ type             <chr> "DataSource", "DataSource", "DataSource", "DataSource…
# }