Re: [R] A solution for question about formatting Dates

2012-06-28 Thread Patrick Connolly
On Tue, 26-Jun-2012 at 11:57PM -0500, Erin Hodgess wrote: | Hello again: | | Here is a solution to the dates without leading zeros: | | pou1 - function(x) { | #Note: x is a data frame | #Assume that Column 1 has the date | #Column 2 has station | #Column 3 has min |

Re: [R] A solution for question about formatting Dates

2012-06-28 Thread Patrick Connolly
On Thu, 28-Jun-2012 at 06:27PM +1200, Patrick Connolly wrote: | On Tue, 26-Jun-2012 at 11:57PM -0500, Erin Hodgess wrote: | | | Hello again: | | | | Here is a solution to the dates without leading zeros: | | [...] | | | This is not particularly elegant, but it does the trick. | | It's also

[R] A solution for question about formatting Dates

2012-06-26 Thread Erin Hodgess
Hello again: Here is a solution to the dates without leading zeros: pou1 - function(x) { #Note: x is a data frame #Assume that Column 1 has the date #Column 2 has station #Column 3 has min #Column 4 has max library(stringr) w - character(length=nrow(x))

Re: [R] A solution for question about formatting Dates

2012-06-26 Thread R. Michael Weylandt
Please don't change subject lines for follow-on comments. It messes up threading in most readers: e.g., https://stat.ethz.ch/pipermail/r-help/2012-June/thread.html Michael On Tue, Jun 26, 2012 at 11:57 PM, Erin Hodgess erinm.hodg...@gmail.com wrote: Hello again: Here is a solution to the