Description Usage Arguments Details Value Examples
This is a helper function for quickly and easily selecting or excluding topics on a wide nzcensr data set.
1 | select_by_topic(.data, topics, exclude = FALSE)
|
.data |
The data frame from which the topics should be selected/excluded from. |
topics |
A vector of census topics to be selected or excluded e.g. (c("number_of_rooms_for_occupied_private_dwellings", "number_of_bedrooms_for_occupied_private_dwellings")). |
exclude |
Whether the topics should be selected or excluded. |
Really just a wrapper around a str_detect("pattern_1|pattern_2") selection.
A dataframe
1 | select_by_topic(dwelling_area_units, c("fuel_types", "private_dwelling"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.