Same functionality as within
. Please note that you should write
your expression as if it is a normal data.frame
. The resulting data.frame
however will be a new ffdf
data.frame.
# S3 method for ffdf
within(data, expr, ...)
ffdf
data object used as an environment for evaluation.
expression to evaluate.
arguments to be passed to chunk
.
a modified clone of data
.
# NOT RUN {
ffdat <- as.ffdf(data.frame(x=1:10, y=10:1))
# add z to the ffdat
within(ffdat, {z <- x+y})
# }
Run the code above in your browser using DataLab