Replace NA with last non-NA value in series
Posted: Thu Feb 05, 2015 8:15 am
Hi,
is there an efficient way to exchange all NAs with the respective last non-NA value in a series?
Looping through all elements does not seem too promising from an efficient point of view.
is there an efficient way to exchange all NAs with the respective last non-NA value in a series?
Looping through all elements does not seem too promising from an efficient point of view.