create_dic: Variable dictionaries for metadata

View source: R/qc_md_general_checks.R

create_dicR Documentation

Variable dictionaries for metadata

Description

create_dic creates a dictionary containing metadata variable names and expected class. It is intended as an internal function.

Usage

create_dic(dic_name, parent_logger = "test")

Arguments

dic_name

Name of the metadata sheet of which dictionary is needed. It must be one of site_md, plant_md, psi_data or Questionnaire.

Details

After loading metadata sheets, introduced variables and their classes must be checked in order to ensure data correctness. For that, we need dictionaries containing all the expected variables and their corresponding classes to compare. This function works inside of qc_col_class, so there is no need to call it directly

Value

A named list, variable names being the index and class the value

See Also

Other Quality Checks Functions: qc_coordinates(), qc_data_results_table(), qc_ext_radiation(), qc_factor_values(), qc_get_biomes_spdf(), qc_get_biome(), qc_get_timezone_coord(), qc_is_timestamp(), qc_md_cols(), qc_md_results_table(), qc_measured_sfn(), qc_pl_treatments(), qc_psi_N_nas(), qc_psi_SE_nas(), qc_psi_nas(), qc_set_timezone(), qc_simplify_questions(), qc_species_names_info(), qc_species_names(), qc_species_verification(), qc_start_process_psi(), qc_timestamp_nas()


vflo/PSIsapfluxnetQC1 documentation built on Feb. 15, 2024, 3:19 a.m.