[R] shifting data in matrix by n rows

rcoder michael.larsson at gmail.com
Wed Jul 9 20:57:32 CEST 2008


Hi everyone,

I have some data in a matrix, and I want to shift it down by one row. The
matrix in question has a date column. Does anyone know of a way to shift the
data by one row, whilst preserving the date column in the matrix - i.e.
shift the data and leave the date column in the current location?

Thanks,

rcoder
-- 
View this message in context: http://www.nabble.com/shifting-data-in-matrix-by-n-rows-tp18368420p18368420.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list