read_ef_files(dirs = getwd(), only_level = NULL, only_aggr = NULL, ...)read_ef_file, specifically fill_valuelevel, aggr, and fluxes. fluxes is a dataframe that
binds the rows of all fluxes files imported for each level/aggregation combination found.
Additional columns to fluxes include metadata parsed from the file names:
For levels 3 and 4: project, level, aggr, country_id, site_id, year, version, pathname, dirname
For level 2: project, level, type, country_id, site_id, year, version, time_res, pathname, dirname^[A-Z]{4}_EC_Ln_a_[A-Z]{2}[a-ZA-Z]{3}_20[0-9]{2}_v[0-9]{2}\.txt$
where n is level [1-4] and a is aggregation period [hdwm] (optionally given as function arguments)dir_name <- system.file(package = "efreadr", "examples")
read_ef_files(dir_name)
Run the code above in your browser using DataLab