A class for ‘cohort’ datasets for use in epidemiological studies.
a data.frame, ffdf or data.table which contains data on patients, one row per patient
the column name representing the unique patient identifier
a data.frame with two columns containing column descriptions. The column names must be 'colname' and 'description'.
Cohort objects have a number of associated methods which make it easier to manage data and generate datasets for analysis. Note that data.table objects are not copied by this function; the original object is modified. If you want to leave the original object as it is, use the
copy function, e.g.
mycohort <- cohort(copy(mydataset)).
An object with classes ‘cohort’ and either ‘data.table’ or ‘ffdf’, and the following attributes:
ID column name
description of the columns
If it is a data.table cohort, the ID column is the leftmost column and all the others are arranged alphabetically.
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.