View source: R/functions_pheno_data.R
calculate_time_since_baseline | R Documentation |
If visit dates are available time since baseline visits (in days) is calculated.
calculate_time_since_baseline( pheno, col.id.sample, col.id.subject, col.date, col.visit, col.time.diff )
pheno |
[data.frame] harmonized phenotype data |
col.id.sample |
[vector(1)] column name or number with sample identifier |
col.id.subject |
[vector(1)] column name or number with subject identifier |
col.date |
[vector(1)] column name or number with date of sample collection (needs to be of class Date) |
col.visit |
[vector(1)] column name or number with visit number (needs to be numeric) |
col.time.diff |
[character(1)] column name for new variable with time since baseline |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.