Subset columns when reading from Fingertips
Usage
fingertips_subset_columns(
data = readepi(profile_id = 19L, area_type_id = 202L)[["data"]],
fields = c("IndicatorID", "AreaCode", "Age", "Value")
)
Arguments
- data
the data read from Fingertips
- fields
a vector or a comma-separated string of column names
Value
an object of type data.frame
with the Fingertips dataset that
contains only the fields of interest.
Examples
if (FALSE) {
res <- fingertips_subset_columns(
data = readepi(
profile_id = 19,
area_type_id = 6
)$data,
fields = c("IndicatorID", "AreaCode", "Age", "Value")
)
}