ffbase (version 0.12.7)

min.ff: Minimum, maximum and range of ff vector

Description

default behaviour of min,max and range

Usage

# S3 method for ff
min(x, ..., na.rm = FALSE, range = NULL)

Arguments

x

a ff object

...

optional other (ff) objects

na.rm

should NA be removed?

range

a ri or an integer vector of length==2 giving a range restriction for chunked processing

Value

minimun, maximum or range values

Examples

Run this code
# NOT RUN {
x <- ff(1:100)

min(x)
max(x)
range(x)

is.na(x) <- 10
min(x)
max(x)
range(x)


min(x, na.rm=TRUE)
max(x, na.rm=TRUE)
range(x, na.rm=TRUE)
# }

Run the code above in your browser using DataCamp Workspace