[R] Date conversion

Gabor Grothendieck ggrothendieck at gmail.com
Thu Aug 5 02:59:24 CEST 2010

On Wed, Aug 4, 2010 at 8:33 PM, Steven Kang <stochastickang at 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.

More information about the R-help mailing list