Serguei Kaniovski wrote: > Hello, how can I get rid of all dimnames so that: > $amat > Var3 Var2 Var1 > 8 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 > 7 1 1 1 0 1 0 0 0 1 0 0 0 0 0 0 > 6 1 1 0 1 0 1 0 0 0 1 0 0 0 0 0 > 5 1 1 0 0 0 0 0 0 0 0 1 0 0 0 0 > 4 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 > 3 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 > 2 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 > 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 > > is displayed with [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] in rows, and the > same in columns. The matrix was generated using "apply" > >
dimnames(mat) <- NULL ______________________________________________ R-help@stat.math.ethz.ch 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.