From 6ca3a1c802b6a5a420b18556a1c83efea13252b6 Mon Sep 17 00:00:00 2001 From: your name Date: Wed, 3 Jan 2024 22:16:12 -0500 Subject: [PATCH] docs: add acs_table function examples --- R/acs_table.R | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/R/acs_table.R b/R/acs_table.R index 417f057..ebbad07 100644 --- a/R/acs_table.R +++ b/R/acs_table.R @@ -10,6 +10,8 @@ #' @inheritParams rlang::args_error_context #' @returns A character vector of variable ID values for a single table. #' @seealso [acs_table_variables()] +#' @examples +#' acs_table_race_iteration("B25003") #' @export acs_table_race_iteration <- function(table, codes = NULL, @@ -55,6 +57,10 @@ acs_table_race_iteration <- function(table, #' @inheritParams rlang::args_error_context #' @returns A character vector of variable ID values for a single table. #' @seealso [acs_table_race_iteration()] +#' @examples +#' acs_table_variables(table = "B15003") +#' +#' acs_table_variables(table = "B15003", variables = c(1:5)) #' @export #' @importFrom stringr str_pad acs_table_variables <- function(table = NULL,