superheat::superheat(as.matrix(c(2,3,3))) gives Error in 1:ncol(X) : argument of length 0 while superheat::superheat(cbind(as.matrix(c(2,3,3)), as.matrix(c(2,3,3))) works just fine (as expected)
This may be as simple as using ,drop=FALSE for any as.matrix operations?
superheat::superheat(as.matrix(c(2,3,3)))
givesError in 1:ncol(X) : argument of length 0
whilesuperheat::superheat(cbind(as.matrix(c(2,3,3)), as.matrix(c(2,3,3)))
works just fine (as expected)This may be as simple as using
,drop=FALSE
for anyas.matrix
operations?