add_metadata<- | R Documentation |
Generic functions for manipulation of metadata in Risoe.BINfileData, RLum.Analysis and RLum.Data objects.
add_metadata(object, ...) <- value
rename_metadata(object, ...) <- value
replace_metadata(object, ...) <- value
object |
(required) object to manipulate |
... |
further arguments passed to the specific class method |
value |
the value to be assigned |
Marco Colombo, Institute of Geography, Heidelberg University (Germany)
RLum.Data, RLum.Analysis, Risoe.BINfileData
## load example data
data(ExampleData.BINfileData, envir = environment())
## show data
CWOSL.SAR.Data
## add a new field
add_metadata(CWOSL.SAR.Data,
info_element = "INSTITUTE") <- "Heidelberg University"
## rename a field
rename_metadata(CWOSL.SAR.Data,
info_element = "INSTITUTE") <- "INSTITUTION"
## replace all LTYPE to RSL
## but only for the first position
replace_metadata(
object = CWOSL.SAR.Data,
info_element = "LTYPE",
subset = (POSITION == 1)) <- "RSL"
## replacing a field with NULL allows to remove that field
replace_metadata(CWOSL.SAR.Data,
info_element = "PREVIOUS") <- NULL
## show the modified data
CWOSL.SAR.Data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.