Description Usage Arguments Examples
This function returns a data.table::data.table object (in "long format", i.e. an individual's ID spanning multiple rows) for event data (date, location, and type of event).
1 |
df_ind |
A dataframe containing as columns "id", "bdate", "bplace", "bstatus", "ddate", "dplace", and "dstatus" |
df_fam |
A dataframe containing as columns "idm","idf", "dat4", "cort", and "fall" |
1 2 3 4 5 6 | ## Not run:
df_ind <- get_exmpl_df()
df_fam <- data.table::data.table(idf = c(0,unique(df_ind$momid[df_ind$momid>0])), fall = "C")
df_ev <- get_df_ev(df_ind, df_fam)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.