min.hdf5.dataset {rhdf5}R Documentation

Compute various useful quantities on HDF5 datasets.

Description

These methods provide some basic numerical functionality that is needed to treat HDF5 datasets as if they were R arrays.

Usage

min.hdf5.dataset(..., na.rm=FALSE)
max.hdf5.dataset(..., na.rm=FALSE)
range.hdf5.dataset(..., na.rm=FALSE)
length.hdf5.dataset(x)

Arguments

... An object of class hdf5.dataset.
na.rm A logical variable indicating whether NA's (missing values) should be removed when computing the summary statistic.
x An object of class hdf5.dataset.

Details

Not much to say. It might be nice to be able to handle multiple arguments (and then multiple classes of arguments) for min, max and range.

Value

The appropriate summary statistic(s) in a vector.

Author(s)

R. Gentleman

See Also

hdf5.dataset

Examples

 ## Not run: 
 set.seed(321)   
  xx <- hdf5.dataset(mad, "aab", dim=c(10, 10))
  xx[]<-rnorm(100)
  xx ##10x10 matrix of reals
  min(xx)  ## [1] -1.932862
  max(xx)  ## [1] 2.711432
  range(xx) ##[1] -1.932862  2.711432
  xx[5,5] <- NA
  min(xx) ##[1] NA
  min(xx,na.rm=TRUE)  ##[1] -1.932862
## End(Not run)

[Package rhdf5 version 1.4.0 Index]