On Wed, Aug 4, 2010 at 8:33 PM, Steven Kang <stochastick...@gmail.com> wrote:
> Hi all,
>
> I am trying to convert all the dates (all days that are not Friday) in data
> frame into dates to next Friday.
>
> The following works but the result is returned as vector rather than the
> original class.
>
> It would be greatly apprecited if you could provide any solution to this
> problem.
>

The "zoo-quickref" vignette in the zoo package defines a one line
nextfri function which does this.

______________________________________________
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.

Reply via email to