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

2012-03-04 Thread branch.lizard
Can you provide a sample of code for us?

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


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

2012-03-05 Thread branch.lizard
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.