[R] mlbench dataset question
spime
sabya23 at gmail.com
Mon Jul 6 21:16:11 CEST 2009
Dear R-users,
Recently, I am facing some problems when converting mlbench data into matrix
format.
library(mlbench)
data(BostonHousing)
X<- BostonHousing[,1:13]
y<-BostonHousing[,14]
I want to convert X and y into matrix form. I am getting these obvious
errors...
> t(X)%*%y
Error in t(X) %*% y : requires numeric/complex matrix/vector arguments
> t(as.matrix(X))%*%(as.matrix(y))
Error in t(as.matrix(X)) %*% (as.matrix(y)) :
requires numeric/complex matrix/vector arguments
any kind of suggestions will be very helpful.
Thanks.
--
View this message in context: http://www.nabble.com/mlbench-dataset-question-tp24361272p24361272.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list