I would do:

QQ.frame <- data.frame(round(QQ,2))
name(QQ.Frame) <- paste("foo",seq(1:7))


foo 1 foo 2 foo 3 foo 4 foo 5 foo 6 foo 7
1     1     0     0     0     0     0     0
2     0     1     0     0     0     0     0
3     0     0     1     0     0     0     0
4     0     0     0     1     0     0     0
5     0     0     0     0     1     0     0
6     0     0     0     0     0     1     0
7     0     0     0     0     0     0     1

sorry my indent got a little off.

Is this what you are looking for?

--
View this message in context: 
http://r.789695.n4.nabble.com/how-I-can-explore-the-variable-names-in-my-covariance-matrix-tp4445149p4448858.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