search for: uaagghh

Displaying 2 results from an estimated 2 matches for "uaagghh".

Did you mean: aaargghh
2018 Feb 27
2
scale.default gives an incorrect error message when is.numeric() fails on a sparse row matrix (dgeMatrix)
I am attempting to use the lars package with a sparse input feature matrix, but the following fails: library(Matrix) library(lars) data(diabetes) attach(diabetes) x = as(as.matrix(as.data.frame(x)), 'dgCMatrix') lars(x, y, intercept = FALSE) Error in scale.default(x, FALSE, normx) : > > length of 'scale' must equal the number of columns of 'x' > > More
2018 Mar 01
0
scale.default gives an incorrect error message when is.numeric() fails on a dgeMatrix
...(unimportant mistake: a dgeMatrix is *not* sparse) MM: modified to commented R code, slightly changed from your post: ## I am attempting to use the lars package with a sparse input feature matrix, ## but the following fails: library(Matrix) library(lars) data(diabetes) # from 'lars' ##UAagghh! not like this -- both attach() *and* as.data.frame() are horrific! ##UA attach(diabetes) ##UA x = as(as.matrix(as.data.frame(x)), 'dgCMatrix') x <- as(unclass(diabetes$x), "dgCMatrix") lars(x, y, intercept = FALSE) ## Error in scale.default(x, FALSE, normx) : ## length...