[R] from 3 numeric variables to a string
David Winsemius
dwinsemius at comcast.net
Fri Jun 5 23:05:32 CEST 2009
?paste
paste(month,day,year, sep="/")
On Jun 5, 2009, at 4:56 PM, 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.
>
> Sincerely,
>
> Marc
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list