## Not run:
# data <- matrix(sample(0:2, 20, replace=T), 2, 10)
# rownames(data) <- c("X1", "X2")
# write.table(data, "X.txt", col.names=FALSE)
# X <- read.big.matrix("X.txt", sep=" ", type="char", has.row.names=TRUE)
# # if it is possible, set type="char", reading will be quicker
# transposeBigMatrix(X, sep=" ")
# ## End(Not run)
Run the code above in your browser using DataLab