fairify_data {FAIRmaterials} | R Documentation |
FAIRify Data
Description
Function that receives user input metadata and converts that into a FAIRified json-ld file based on a template created as part of this package.
Usage
fairify_data(
dataframe,
unit_dataframe = data.frame(),
domain,
saveLocal = FALSE,
data_list = list()
)
Arguments
dataframe |
User input metadata dataframe |
unit_dataframe |
User input units (one row dataframe) |
domain |
Json-LD template to be filled by function |
saveLocal |
Boolean stating whether the files should be saved locally |
data_list |
List of columns included in any of your raw dataframes |
Value
FAIRified .json-ld text document
Examples
metadata <- data.frame('CellMaterial' = 'mono-silicon',
'Module Efficiency' = 20.1)
metadata_units <- data.frame('CellMaterial' = NA,
'ModuleEfficiency' = '%')
fairify_data(metadata, metadata_units, 'photovoltaicModule', saveLocal = FALSE)