search for: tp22637249p22637249

Displaying 1 result from an estimated 1 matches for "tp22637249p22637249".

2009 Mar 21
1
How to avoid switching on input type?
...lag.zerofill.zoo <- function( m, shift=1, ...) { k <- rbind( m[1:shift,], lag(m,-(shift))); k[1:shift,] <- 0; k; } lag.zerofill.list( inp ) # works ok lag.zerofill.zoo( inp.zoo ) # works ok -- View this message in context: http://www.nabble.com/How-to-avoid-switching-on-input-type--tp22637249p22637249.html Sent from the R help mailing list archive at Nabble.com.