Description Usage Arguments Value See Also Examples
View source: R/amf_extract_badm.R
This function extracts BADM data of a specific BADM group
from the imported BADM (BIF) file. Use function amf_read_bif
to import BADM (BIF) file.
1 | amf_extract_badm(bif_data, select_group)
|
bif_data |
A data frame consists of 5 columns: SITE_ID, GROUP_ID,
VARIABLE_GROUP, VARIABLE, DATAVALUE, imported from function
|
select_group |
A string (character), selected from VARIABLE_GROUP
in the |
A data frame of re-structured BADM data with the following columns:
GROUP_ID - A unique identifier for data belonging to the same instance of a reported variable group
SITE_ID - Six character site identifier (CC-Sss)
VALUE - Values for all available VARIABLES in the selected group
...
1 2 3 4 5 6 7 8 9 10 11 | # read the BADM BIF file, using an example data file
bif <- amf_read_bif(file = system.file("extdata",
"AMF_AA-Flx_BIF_CCBY4_20201218.xlsx",
package = "amerifluxr"))
# get a list of valid VARIALBE_GROUP
unique(bif$VARIABLE_GROUP)
# extract the selected VARIALBE_GROUP
amf_extract_badm(bif_data = bif, select_group = "GRP_FLUX_MEASUREMENTS")
amf_extract_badm(bif_data = bif, select_group = "GRP_IGBP")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.