get_subreport_names {geogenr}R Documentation

Get subreport names

Description

Each topic includes several reports and subreports. Once a topic has been selected, using this function we obtain the name of the available subreports of a report. If no report is indicated, all subreports of the topic are obtained.

Usage

get_subreport_names(act, report)

## S3 method for class 'acs_5yr_topic'
get_subreport_names(act, report = NULL)

Arguments

act

An acs_5yr_topic object.

report

A string, report name.

Value

A vector, subreport names.

See Also

Other data selection functions: as_acs_5yr_topic(), get_available_area_topics(), get_available_area_years(), get_available_areas(), get_geo_attribute_names(), get_geo_layer.acs_5yr_geo(), get_names_of_other_topics(), get_report_names(), get_topic_name(), select_report(), select_subreport(), select_topic()

Examples


reports <- anrc_2021_x01 |>
  get_subreport_names(report = "B01002-Median Age By Sex")


[Package geogenr version 2.0.1 Index]