[R] how I can explore the variable names in my covariance matrix?

branch.lizard branch.lizard at gmail.com
Tue Mar 6 07:05:54 CET 2012


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.



More information about the R-help mailing list