View source: R/ExtractNewValues.R
write_new_values_to_file | R Documentation |
Write the specific tibble to a csv.
write_new_values_to_file(specific_value, list_of_tibbles, folder)
specific_value |
Which attribute are you hoping to write to csv (e.g. "crop_yield_units") |
list_of_tibbles |
What are all of the units which you have extracted from the RHoMIS project. See function "extract_new_core_units" |
folder |
What is the folder you hope to write this to. Do not include "/" at the end of the file path |
Rpackage file: ExtractNewValues.R
No return
# Please make sure the correct folder exists for you
specific_value <- "egg_units"
new_values <- list(
egg_units = c("egg1", "egg2", "egg3"),
other_units = c("other1", "other2", "other3")
)
list_of_tibbles <- sapply(new_values, function(x) convert_new_values_to_tibble(x), simplify = FALSE)
folder <- "data/test_outputs/write_new_values_to_file"
# write_new_values_to_file(specific_value,list_of_tibbles,folder)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.