[R] from 3 numeric variables to a string

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Fri Jun 5 23:18:37 CEST 2009


Marc Belisle wrote:
> Hi there,
>
> I have 3 numeric variables: day (e.g., 05), month (e.g., 06), year (e.g.,
> 2009).
>
> I would like to create a (string) variable of the following form:
> month/day/year (e.g., 06/05/2009).
>
> I would be grateful to anyone who could point me toward a solution.
>   

?sprintf

vQ




More information about the R-help mailing list