crosswalk_variables {dataspice} | R Documentation |
Crosswalk dataspice
variables to EML
Description
See set_attributes
for more information on what must be
filled out after this is run in order to get a valid EML attributeList
.
Usage
crosswalk_variables(spice)
Arguments
spice |
(list) Your |
Value
(data.frame) A partial EML attributes table
Examples
## Not run:
# Load an example dataspice JSON that comes installed with the package
spice <- system.file(
"examples", "annual-escapement.json",
package = "dataspice")
# Convert it to EML (notice the warning)
eml_doc <- suppressWarnings({spice_to_eml(spice)})
attributes <- crosswalk_variables(spice)
# Now fill in the attributes data.frame. See `EML::set_attributes`.
# And last, set the attributes on our EML document
eml_doc$dataset$dataTable[[1]]$attributeList <-
EML::set_attributes(attributes)
## End(Not run)
[Package dataspice version 1.1.0 Index]