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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to