SyntaxFix
Write A Post
Hire A Developer
Questions
The rep.row function seems to sometimes make lists for columns, which leads to bad memory hijinks. I have written the following which seems to work well:
library(plyr) rep.row <- function(r, n){ colwise(function(x) rep(x, n))(r) }