On Wed, 5 Sep 2018, Ben Tupper wrote:

Perhaps you wanted to convert dp$rainfall.sampdate and not dp$sampdate like 
this...

dp$sampdate <- as.character(dp$rainfall.sampdate)

... or even better, take charge of the conversion with format() ...

dp$sampdate <- format(dp$rainfall.sampdate, format = '%Y-%m-%d')

Ben,

  Yep. That's what I want and didn't know how to do. The first conversion I
missed seeing and the second reflects my infamiliarity with format().

Many thanks,

Rich

______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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