[R] without a loop

Omar Lakkis uofiowa at gmail.com
Tue Jun 7 17:02:13 CEST 2005


tmp <- c(-1,NA,NA,1,1,NA,NA,1)

without using a loop, how can I replace all NAs in the list above with
the previous none NA value in the list?




More information about the R-help mailing list