dl_data: Loading data from xls/xlsx ann csv files

Description Usage Arguments Details Value See Also

Description

Detecting file type and load data from files.

Usage

1
2
dl_data(file_name, sheet_name, long = FALSE, n = 1000, na = "",
  parent_logger = "test")

Arguments

file_name

Character vector indicating the name of the file containing the data.

sheet_name

Character vector indicating the name of the sheet to be loaded. It must be one of sapflow_hd or environmental_hd. It is only used if origin file is an xlsx file

long

Logical indicating if returned data must be in long format

n

Numeric indicating the number of rows used to guess the decimal character used in csv files. Only used when data file is a csv.

na

Character string with the symbol codified as missing value. Default to blank.

Details

This function make use of dplyr, tidyr and readxl packages in order to retrieve and format the data. Also, in the case of csv files it uses data.table package.

Value

dl_data returns sapflow or environmental data in wide format, ready to pipe it in the quality checks for raw data. If long = TRUE data is returned in long format, ready for plotting.

See Also

Other Data Loading Functions: dl_data_col_classes, dl_dec_char_detect, dl_get_si_code, dl_metadata, dl_na_char_generator, qc_as_timestamp, remove_dupcols


sapfluxnet/sapfluxnetQC1 documentation built on May 29, 2019, 1:50 p.m.