Re: [R] Converting a Date variable from character to Date

2022-09-29 Thread avi.e.gross
I am not replying to the earlier request just to the part right below my message. A simple suggestion when sending people code is to add NOTHING except proper comments. Can we assume the extra asterisks are superfluous and not in your code? I mean your column is named "Period" and not "*Period"

Re: [R] Converting a Date variable from character to Date

2022-09-29 Thread Rui Barradas
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

Re: [R] Converting a Date variable from character to Date

2022-09-29 Thread Admire Tarisirayi Chirume
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

Re: [R] Converting a Date variable from character to Date

2022-09-29 Thread jim holtman
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