View source: R/read_params_table.R
read_params_table | R Documentation |
Getting parameters data from tables files (Excel sheet, csv)
read_params_table(
file,
sheet_name = NULL,
num_na = "NA",
char_na = "NA",
file_path = lifecycle::deprecated()
)
file |
Excel or csv file path (including name of the file) |
sheet_name |
Name of an Excel sheet (useless for csv files) |
num_na |
Replacement value for numerical NA values (default: NA) |
char_na |
Replacement value for character NA values (default: "") |
file_path |
After data are loaded, numerical and string NA values are replaced respectively with num_na or char_na
A tibble of parameters
usm_xl_file <- download_usm_xl(
file = "inputs_stics_example.xlsx",
verbose = FALSE
)
read_params_table(usm_xl_file, sheet = "USMs")
usm_csv_file <- download_usm_csv(
file = "inputs_stics_example_USMs.csv",
verbose = FALSE,
stics_version = "V9.2"
)
read_params_table(file = usm_csv_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.