select_subreport {geogenr}R Documentation

Select subreport

Description

Select the subreports whose names are indicated. We reduce the available subreports and variables to those of the selected subreports.

Usage

select_subreport(act, subreport)

## S3 method for class 'acs_5yr_topic'
select_subreport(act, subreport = NULL)

Arguments

act

An acs_5yr_topic object.

subreport

A string vector, subreport names.

Value

A vector, topic 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_subreport_names(), get_topic_name(), select_report(), select_topic()

Examples


act2 <- anrc_2021_x01 |>
  select_subreport(
    c(
      "B01002-B-Median Age By Sex (Black Or African American Alone)",
      "B01002-C-Median Age By Sex (American Indian And Alaska Native Alone)"
    )
  )


[Package geogenr version 2.0.1 Index]