View source: R/biglm.big.matrix.R
bigglm.big.matrix | R Documentation |
This is a wrapper to Thomas Lumley's
biglm
package, allowing it to be used with massive
data stored in big.matrix
objects.
bigglm.big.matrix(
formula,
data,
chunksize = NULL,
...,
fc = NULL,
getNextChunkFunc = NULL
)
biglm.big.matrix(
formula,
data,
chunksize = NULL,
...,
fc = NULL,
getNextChunkFunc = NULL
)
formula |
a model |
data |
a |
chunksize |
an integer maximum size of chunks of data to process iteratively. |
fc |
either column indices or names of variables that are factors. |
... |
options associated with the |
getNextChunkFunc |
a function which retrieves chunk data |
an object of class biglm
## Not run:
library(bigmemory)
x <- matrix(unlist(iris), ncol=5)
colnames(x) <- names(iris)
x <- as.big.matrix(x)
head(x)
silly.biglm <- biglm.big.matrix(Sepal.Length ~ Sepal.Width + Species,
data=x, fc="Species")
summary(silly.biglm)
y <- data.frame(x[,])
y$Species <- as.factor(y$Species)
head(y)
silly.lm <- lm(Sepal.Length ~ Sepal.Width + Species, data=y)
summary(silly.lm)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.