; Subject: [R] Converting the data in year month day hour and minutes to
> date
>
> Hi ,
>
>
>
> I am trying to convert the date as factor to date using "as.date"
> function
> in R. I have the date in the following format
>
> 2008-01-01 02:30
>
It is possible to squeeze a square peg into a round hole, but often you will
not be satisfied with the result. Date is for... surprise, dates. You may want
to use the chron package or the POSIXct type. The R Journal of June 2004
(Volume 4/1) "R Help Desk" column is recommended reading.
-
Hello,
Try the following.
x <- "2008-01-01 02:30"
as.POSIXct(x, format = "%Y-%m-%d %H:%M")
Hope this helps,
Rui Barradas
Em 19-02-2013 17:47, Janesh Devkota escreveu:
Hi ,
I am trying to convert the date as factor to date using "as.date" function
in R. I have the date in the following f
jdbaba wrote
> Hi ,
>
>
>
> I am trying to convert the date as factor to date using "as.date" function
> in R. I have the date in the following format
>
> 2008-01-01 02:30
>
>
>
> I tried to use the following command :
>
> as.Date(mydata$Date, format="%y-%m-%d ")
>
>
>
> Can somebo
On 19.02.2013 18:47, Janesh Devkota wrote:
Hi ,
I am trying to convert the date as factor to date using "as.date" function
in R. I have the date in the following format
2008-01-01 02:30
I tried to use the following command :
as.Date(mydata$Date, format="%y-%m-%d ")
Can somebody help
Hi ,
I am trying to convert the date as factor to date using "as.date" function
in R. I have the date in the following format
2008-01-01 02:30
I tried to use the following command :
as.Date(mydata$Date, format="%y-%m-%d ")
Can somebody help me with this ? I was able to convert the
6 matches
Mail list logo