as.ejObject.obkData: This function processes objects from the obkClass data and...

Description Usage Arguments Value Note Examples

View source: R/obkData.R

Description

This function processes objects from the obkClass data and converts to the epiJSON format

Usage

1
2
## S3 method for class 'obkData'
as.ejObject(x, metadata = list(), ...)

Arguments

x

An record from the obkData

metadata

The list of the components in the metadata

...

other parameters (to maintain consistency with the generic)

Value

an ejObject

Note

There is a slight mismatch in symantics here obkData individuals are equivelent to EpiJSON records and obkData records are EpiJSON events. This is beause in EpiJSON the unit of record is not necessarily an individual (it could, for example, be a region or hospital, etc).

Examples

1
2
3
4
require('OutbreakTools')
data(ToyOutbreak)
x=subset(ToyOutbreak,2)
as.ejObject(x, metadata=list())

repijson documentation built on May 29, 2017, 2:12 p.m.