Learn R Programming

geogenr (version 2.0.1)

get_subreport_names: 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 acs_5yr_topic get_subreport_names(act, report = NULL)

Value

A vector, subreport names.

Arguments

act

An acs_5yr_topic object.

report

A string, report name.

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

Run this code

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

Run the code above in your browser using DataLab