modify | R Documentation |
Modify a data set
modify(dat, x, ref, ...)
## S4 method for signature 'data.frame,modifier,environment'
modify(dat, x, ref, logger = NULL, ...)
## S4 method for signature 'data.frame,modifier,ANY'
modify(dat, x, logger = NULL, ...)
## S4 method for signature 'data.frame,modifier,data.frame'
modify(dat, x, ref, logger = NULL, ...)
## S4 method for signature 'data.frame,modifier,list'
modify(dat, x, ref, logger = NULL, ...)
dat |
A |
x |
A |
ref |
A |
... |
Extra arguments. |
logger |
Optional. A |
m <- modifier( if (height < mean(height)) height <- 2*height
, if ( weight > mean(weight) ) weight <- weight/2 )
modify(women,m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.