Learn R Programming

epiparameter (version 0.4.1)

as_epiparameter.data.frame: 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 data.frame
as_epiparameter(x, ...)

Value

An <epiparameter> object or list of <epiparameter> objects.

Arguments

x

A <data.frame>.

...

dots Not used, extra arguments supplied will cause a warning.

Examples

Run this code
ep <- epiparameter_db(single_epiparameter = TRUE)
df <- as.data.frame(ep)
ep <- as_epiparameter(df)

Run the code above in your browser using DataLab