Learn R Programming

efreadr (version 0.1.1)

read_ef_file: Load a CSV file from the European Flux Database

Description

File name is parsed to extract year, site identification and aggregation type. The file name must point to a valid European Fluxes file, in CSV format and must resolve to a valid file format name.

Usage

read_ef_file(file_name)

Arguments

file_name
Full path to 1 fluxes file

Value

a data frame as loaded from the file, added with 'efreadr_year', 'efreadr_file_name' and 'efreadr_site_id' columns, and 'efreadr_date' column for half-hourly fluxes

Details

Year, file name and site identification are added as fields in the returned data frame as 'efreadr_year', 'efreader_file_name' and 'efreader_site_id'.

Examples

Run this code
file_name <- system.file("extdata", "CEIP_EC_L4_d_FABar_2015_v02.txt", package = "efreadr")
read_ef_file(file_name)

Run the code above in your browser using DataLab