[R] Working with a set of matrices

From: M Jones <jonesme11_at_yahoo.com>
Date: Sun 21 Jan 2007 - 06:08:41 GMT


Hi,

I have a set of matrices (MAT.1, MAT.2, ...) and I'd like to perform the same operation on each of them (for simplicity, say . I'm writing a function for this so that it can be repeated for different sets with different numbers of matrices. The matrices have the same number of columns, but do not have the same number of rows.

My thought is to loop thru the set. but I'm not sure how to set the loop up so that the matrix number changes for each cycle. I have tried paste, but that leaves quotation marks around the matrix name (e.g., "MAT.1", and I need just MAT.1), or at least the way I'm using paste..

Any thoughts? If there is a better way than the loop, then I'm of course open to that.

Thanks in advance.  



No need to miss a message. Get email on-the-go

        [[alternative HTML version deleted]]



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. Received on Sun Jan 21 17:14:35 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 21 Jan 2007 - 10:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.