ime(as.character(dat1$Date), "%Y-%m-%d")
dat1$Date1txt <- format(dat1$Date1, "%Y%m%d")
Stefano
Da: arun [smartpink...@yahoo.com]
Inviato: martedì 4 marzo 2014 17.06
A: r-help@r-project.org
Cc: Stefano Sofia
Oggetto: Re: [R] format
Hi
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Stefano Sofia
> Sent: Tuesday, March 04, 2014 11:58 AM
> To: r-help@r-project.org
> Subject: [R] format for as.Date and inserting missing rows in a data
> frame
>
> Dear R use
Hi,
May be this helps:
dat <- read.table(text="Raingouge_number Station_number Year Month Day Rainfall
2004 2230 1951 1 1 2.60
2004 2230 1951 1 2 0.40
2004 2230 1951 1 3 0.00
2004 2230 1951 1 4 0.00
2004 2230 1951 1 5 0.20
2004 2230 1951 1 6 0.00
2004 2230 1951 1 7 0.00
2004 2230 1951 1 9 0.00
2004
3 matches
Mail list logo