Skip to content

Commit

Permalink
minor function example updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wcurrangroome committed Jan 24, 2024
1 parent 90299dc commit e94e468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/compile_acs_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ safe_divide = function(x, y) { dplyr::if_else(y == 0, 0, x / y) }
#' a series of derived variables, such as percentages, and the year of the data.
#' Returned data are formatted wide.
#' @examples
#' variables = list_acs_variables(year = "2022")
#' acs_variables = list_acs_variables(year = "2022")
#' compile_acs_data(
#' variables = variables,
#' variables = acs_variables,
#' years = c(2021, 2022),
#' geography = "county",
#' states = "NJ",
Expand Down
4 changes: 2 additions & 2 deletions R/list_acs_variables.R
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ select_variables_by_name = function(variable_name, census_codebook) {
#' @returns The elements from `variable_vector` that do/don't match `match_string`.
#' @examples
#' codebook = tidycensus::load_variables(dataset = "acs5", year = 2022)
#' variables = select_variables_by_name("B16005_", census_codebook = codebook)
#' selected_variables = select_variables_by_name("B16005_", census_codebook = codebook)
#' filter_variables(
#' variable_vector = variables,
#' variable_vector = selected_variables,
#' match_string = "universe_$|native_$|foreign_born_$|only|very_well",
#' match_type = "positive")
#' @export
Expand Down

0 comments on commit e94e468

Please sign in to comment.