View source: R/change_from_baseline.R
| cfb_percent | R Documentation | 
percent change from baseline
cfb_percent(.df, .col, ..., groups = "ID", .name = NULL,
  .name_fn = function(x) {     paste0("CFBP_", x) }, digits = 1,
  .agg_fn = NULL)
.df | 
 data frame  | 
.col | 
 column name (unquoted)  | 
... | 
 filter functions (unquoted) to establiash baseline row, defaults to first row per group  | 
groups | 
 vector of groups, defaults to "ID"  | 
.name | 
 name of created column (quoted). Defaults to CFBP_<.col>.  | 
.name_fn | 
 function to apply formatting to the given colun name  | 
digits | 
 number of digits to round result  | 
.agg_fn | 
 function to calculate an aggregate statistic for the baseline value  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.