Learn R Programming

ffbase (version 0.6-2)

mean.ff: Mean of ff vector

Description

Mean of ff vector

Usage

## S3 method for class 'ff':
mean(x, trim = 0, ..., range = NULL)

Arguments

x
a ff vector
trim
percentage of robustness, between 0 and 1
...
other arguments passed to mean
range
a ri or an integer vector of length==2 giving a range restriction for chunked processing

Value

  • mean value

Examples

Run this code
# create a vector of length 10 million
x <- ff(vmode="double", length=1e7)

mean(x)

Run the code above in your browser using DataLab