read_ef_file(file_name, aggregation = NA_character_, year = NA_integer_,
fill_value = -9999L)NA_character_). This is important to properly define variable types for each aggregation type. When NA_character_ it is assumed no aggregation (eg L2 files).NA_integer). Important to correctly add efreadr_date fieldNA) observation in CSV file. All the observations with 'fill_value' values are converted to NAs during import. Default is -9999L.pathname. The pathname variable may be used to join a dataframe with
file metadata such as year, site code, level, aggregation, as reaf_ef_files does.The fluxes files code not available measures as -9999 (integer variables) or -9999.00 (floating point variables).
Default behaviour of read_ef_file is to treat them as NAs. All -9999L, and -9999.0, -9999.00,
-9999.000 values are converted to NA during import of files.
Occasionally, -9999.00 (floting point representation of NA) appear in variables that are inherently integer
(i.e. sqc variables in daily flux file). This forces a type conversion of the entire variable to double.
file_name <- system.file(package = "efreadr", "examples", "CEIP_EC_L4_d_FABar_2015_v02.txt")
read_ef_file(file_name)
Run the code above in your browser using DataLab