Re: [R] Matrix subscripting to wrap around from end to start of row

2010-10-13 Thread Alisa Wade
ript that 4:2 does not mean 4,3,2, but it means 4,5,1,2 or is there a way to pass final.script into the subscript in the apply command or am I missing something else? Thanks again, Alisa On Wed, Oct 13, 2010 at 2:23 PM, David Winsemius wrote: > > On Oct 13, 2010, at 4:10 PM, Alisa Wade wrote:

[R] Matrix subscripting to wrap around from end to start of row

2010-10-13 Thread Alisa Wade
Perhaps it is just that I don't even know the correct term to search for, but I can find nothing that explains how to wrap around from the end to a start of a row in a matrix. For example, you have a matrix of 2 years of data, where rows are years, and columns are months. month.data = matrix(c(3,4