load_all_csv: Load a bunch of csv files into a single list

Description Usage Arguments

View source: R/load-random-forest-data.R

Description

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.

Usage

1
2
load_all_csv(main_folder_path, folder, starts_with, years = c("2011", "2012"),
  npixels = 5520, must_have_variables = c("lon", "lat"))

Arguments

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.


pegoraro/qchlorophyll documentation built on May 24, 2019, 11:46 p.m.