min.hdf5.dataset {rhdf5} | R Documentation |
These methods provide some basic numerical functionality that is needed to treat HDF5 datasets as if they were R arrays.
min.hdf5.dataset(..., na.rm=FALSE) max.hdf5.dataset(..., na.rm=FALSE) range.hdf5.dataset(..., na.rm=FALSE) length.hdf5.dataset(x)
... |
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 . |
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
.
The appropriate summary statistic(s) in a vector.
R. Gentleman
## 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)