colmean
, etc...),
biglm.big.matrix
,
bigglm.big.matrix
, bigkmeans
,
binit
, and apply
for big.matrix
objects. Some of the functions may be used with native Robjects, as well,
providing gains in speed and memory-efficiency.The big.matrix
support; big.matrix
objects. Sister packages
big.matrix
, biglm
,
bigkmeans
, binit
, colmean
.# Our examples are all trivial in size, rather than burning huge amounts
# of memory simply to demonstrate the package functionality.
library(bigmemory)
x <- big.matrix(5, 2, type="integer", init=0,
dimnames=list(NULL, c("alpha", "beta")))
x
x[,]
x[,1] <- 1:5
x[,]
mean(x)
colmean(x)
summary(x)
apply(x, 1, mean)
Run the code above in your browser using DataLab