# 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