On Sat, May 19, 2012 at 11:09 AM, Jeff Newmiller <jdnew...@dcn.davis.ca.us> wrote: > library (zoo) > ?na.approx > > Note that you need to define an index (time base) to go along with your data, > but that could be as simple as a sequence of integers.
Actually na.approx in the zoo package has a default method that works with plain vectors too. -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.