as_data_proc_elem | R Documentation |
Checks if an object is a valid Data Processing Elements and returns it with
the appropriate Rmonize::class
attribute. This function mainly helps
validate inputs within other functions of the package but could be used
separately to ensure that an object has an appropriate structure.
as_data_proc_elem(object)
object |
A potential Data Processing Elements object to be coerced. |
The Data Processing Elements specifies the input elements and processing algorithms
to generate harmonized variables in the DataSchema formats. It is also
contains metadata used to generate documentation of the processing.
A Data Processing Elements object is a data frame with specific columns
used in data processing: dataschema_variable
, input_dataset
,
input_variables
, Mlstr_harmo::rule_category
and Mlstr_harmo::algorithm
.
To initiate processing, the first entry must be the creation of a harmonized
primary identifier variable (e.g., participant unique ID).
A data frame with Rmonize::class
'data_proc_elem'.
{
# Use Rmonize_examples to run examples.
library(dplyr)
data_proc_elem <- as_data_proc_elem(Rmonize_examples$`Data_Processing_Elements_no_errors`)
head(data_proc_elem)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.