SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use,
output <- as.matrix(as.data.frame(z))
The memory usage is very similar to
output <- matrix(unlist(z), ncol = 10, byrow = TRUE)
Which can be verified, with mem_changed() from library(pryr).
mem_changed()
library(pryr)