as_epiparameter.data.frame {epiparameter} | R Documentation |
Convert <data.frame>
to an <epiparameter>
object
Description
Convert the tabular information in <data.frame>
to an <epiparameter>
.
If the information in the <data.frame>
cannot be converted into an
<epiparameter>
the function will error.
Usage
## S3 method for class 'data.frame'
as_epiparameter(x, ...)
Arguments
x |
A |
... |
dots Not used, extra arguments supplied will cause a warning. |
Value
An <epiparameter>
object or list of <epiparameter>
objects.
Examples
ep <- epiparameter_db(single_epiparameter = TRUE)
df <- as.data.frame(ep)
ep <- as_epiparameter(df)
[Package epiparameter version 0.4.0 Index]