Description Usage Arguments Value Note Examples
This function processes objects from the obkClass data and converts to the epiJSON format
1 2 | ## S3 method for class 'obkData'
as.ejObject(x, metadata = list(), ...)
|
x |
An record from the obkData |
metadata |
The list of the components in the metadata |
... |
other parameters (to maintain consistency with the generic) |
an ejObject
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).
1 2 3 4 | require('OutbreakTools')
data(ToyOutbreak)
x=subset(ToyOutbreak,2)
as.ejObject(x, metadata=list())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.