Hi frespider,

I think the problem is first that you are referring to column names that you
haven't yet defined. To add the column names you can use the dimnames
argument of the matrix function.

Asse <- matrix(0,nrow=5,ncol=length(namVar), dimnames = list(NULL, namVar)) 

JoAnn



--
View this message in context: 
http://r.789695.n4.nabble.com/Remove-Column-from-matrix-tp4650334p4650344.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
[email protected] 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