View source: R/create_variables.R
create_variables | R Documentation |
Create the Variables table
create_variables( L0_flat, VariableCode, VariableName, VariableUnitsName, SampleMedium, ValueType, IsRegular, TimeSupport, TimeUnitsName, DataType, GeneralCategory, NoDataValue )
L0_flat |
(tbl_df, tbl, data.frame) The fully joined source L0 dataset, in "flat" format (see details). |
VariableCode |
(character) Column in |
VariableName |
(character) Column in |
VariableUnitsName |
(character) Column in |
SampleMedium |
(character) Column in |
ValueType |
(character) Column in |
IsRegular |
(character) Column in |
TimeSupport |
(character) Column in |
TimeUnitsName |
(character) Column in |
DataType |
(character) Column in |
GeneralCategory |
(character) Column in |
NoDataValue |
(character) Column in |
This function appends columns to the L0_flat
table and
returns the augmented table.
"flat" format refers to the fully joined source L0 dataset in "wide" form with the exception of the core observation variables, which are in "long" form (i.e. using the variable_name, value, unit columns of the observation table). This "flat" format is the "widest" an L1 hymetDP dataset can be consistently spread due to the frequent occurrence of L0 source datasets with > 1 core observation variable.
(tbl_df, tbl, data.frame) The Variables table.
Other create required tables:
create_data_values()
,
create_methods()
,
create_quality_control()
,
create_series_catalog()
,
create_sites()
,
create_sources()
flat <- hymet_L0_flat Variables <- hymetDP::create_variables( L0_flat = flat, VariableCode = "VariableCode", VariableName = "VariableName", VariableUnitsName = "VariableUnitsName", SampleMedium = "SampleMedium", ValueType = "ValueType", IsRegular = "IsRegular", TimeSupport = "TimeSupport", TimeUnitsName = "TimeUnitsName", DataType = "DataType", GeneralCategory = "GeneralCategory", NoDataValue = "NoDataValue") Variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.