Description Usage Arguments Examples
View source: R/collectedfunctions.R
This function allows you to add derived variable (ex: add mean value by ID).
1 |
dat |
data frame |
sort |
sort derived variable by (ex:c("ID","SEX")) |
var |
variable to be derived |
fun |
deriving funtion ex:"mean(x)") |
add.to.data |
if "yes" result will be appended to dat |
name |
column name of derived variable |
1 | addvar()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.