?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

______________________________________________
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