View source: R/load-random-forest-data.R
This function loads a bunch of .csv files with identical structure and recurrent pattern into a single list. Each .csv file is assumed to have a recurrent pattern in its name.
1 2 | load_all_csv(main_folder_path, folder, starts_with, years = c("2011", "2012"),
npixels = 5520, must_have_variables = c("lon", "lat"))
|
main_folder_path |
path to the main folder |
folder |
name of the folder containing the .csv files to load. A character. |
starts_with |
initial part of the name of the .csv file. Each file is assumed to have a recurrent pattern in its name where the only changing part is assumed to be the year. A character |
years |
years to load. A character vector. |
npixels |
Number of pixels in each dataframe. (number of rows of data) |
must_have_variables |
a vector of variables that must be included in each .csv file. Character vector. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.