ewmiller
Cc: r-help mailing list
Subject: [R] Converting a Date variable from character to Date
Kindly request assistance to *convert a Date variable from a character to be
recognized as a date*.
NB: kindly take note that the data is in a csv file called *inflation*. I
have included part of the file c
Hello,
You have to paste a day begore coercing to class "Date". A usual choice
for this is day 1.
inflation.2 <- 'PeriodCPI
2022m1 4994
2022m2 5336
2022m3 5671
2022m4 6532
2022m5 7973
2022m610365
2022m712673
2022m8143
Thank you for the code. It helped.
I greatly appreciate.
Alternative email: addtar...@icloud.com/tchir...@rbz.co.zw
Skype: admirechirume
Call: +263773369884
whatsapp: +818099861504
On Thu, Sep 29, 2022 at 7:20 PM jim holtman wrote:
> Try this by add a "day" to the date field
>
> library(ti
Try this by add a "day" to the date field
library(tidyverse)
library(lubridate)
input <- "*PeriodCPI*
2022m1 4994
2022m2 5336
2022m3 5671
2022m4 6532
2022m5 7973
2022m610365
2022m712673
Kindly request assistance to *convert a Date variable from a character to
be recognized as a date*.
NB: kindly take note that the data is in a csv file called *inflation*. I
have included part of the file content herewith with the header for
assistance.
My data looks like this:
*Period
5 matches
Mail list logo