dl_metadata: Loading metadata from xls/xlsx

Description Usage Arguments Details Value See Also

View source: R/dl_data_loading_functions.R

Description

dl_metadata function loads the metadata sheets from xls/xlsx file.

Usage

1
2
dl_metadata(file_name, sheet_name, si_code_loc = NULL,
  parent_logger = "test")

Arguments

file_name

Character vector indicating the name of the xls/xlsx file containing the metadata.

sheet_name

Character vector indicating the name of the sheet to be loaded. It must be one of site_md, stand_md, species_md, plant_md or environmental_md.

si_code_loc

Name of the object containing the site metadata, in order to obtain si_code variable to include it in other metadata objects. Default to NULL, as the first metadata to load must be the site metadata.

Details

This function make use of dplyr, tidyr and readxl packages in order to retrieve and format the metadata. It's intended to be used as first step to load the metadata and start the metadata quality check.

Value

The function returns a data_frame with the corresponding metadata (site, stand, species, plant or environmental) in "wide" format, with metadata variables as columns, ready to be feeded to quality check functions.

See Also

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


sapfluxnet/sapfluxnetQC1 documentation built on April 11, 2018, 4:28 a.m.