Re: [R] Using "by" to create individual variance-covariance matrices

2008-09-28 Thread Uwe Ligges
Let me repeat an important topic from the the posting guide: it would be helpful for us to see a toy example, i.e. code to generate data for x. Best wishes, Uwe Ligges Josh B wrote: Hello R list subscribers, I am trying to use the "by" command to create line-specific variance covariance mat

[R] Using "by" to create individual variance-covariance matrices

2008-09-27 Thread Josh B
Hello R list subscribers, I am trying to use the "by" command to create line-specific variance covariance matrices (where "x" is the original data matrix): by(x, x$line, function(d) { d.clean <- d[,-1]}) write.table(d.clean$line[1,1], sep = ",", file = "covariances.csv", col.names = FALSE, row.