Skip to content
Prev 311511 / 398503 Next

Remove Column from matrix

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.