Re: [R] Converting POSIXct format date to Character format

2021-03-24 Thread Jim Lemon
Hi ma015k3113, I suspect that you are asking the wrong question. # create an example data frame with an extra field PLC<-read.table(text="YEAR_END_Date EPS junk 2010-09-10.10 A 2009-08-10.20 B", header=TRUE, stringsAsFactors=FALSE) # first, I think that you may already have t

Re: [R] Converting POSIXct format date to Character format

2021-03-24 Thread Bert Gunter
What package is select() in? Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Mar 24, 2021 at 4:42 PM Jeff Newmiller wrote: > Please don't reply to a thre

Re: [R] Converting POSIXct format date to Character format

2021-03-24 Thread Jeff Newmiller
Please don't reply to a thread to start a new question... create a new email to avoid linking your question with the one you replied to. On March 24, 2021 12:11:07 PM PDT, e-mail ma015k3113 via R-help wrote: >I have a data frame "PLC" which has two variables Year_END_Date EPS > >YEAR_END_Date

Re: [R] Converting POSIXct format date to Character format

2021-03-24 Thread Rui Barradas
Hello, R is case sensitive, the column name is YEAR_END_Date, neither of Year_END_Date YEAR_END_DATE matches that name. Try select(PLC, format(YEAR_END_Date,format = "%B %d, %Y"), EPS) Hope this helps, Rui Barradas Às 19:11 de 24/03/21, e-mail ma015k3113 via R-help escreveu: I have a data

[R] Converting POSIXct format date to Character format

2021-03-24 Thread e-mail ma015k3113 via R-help
I have a data frame "PLC" which has two variables Year_END_Date EPS YEAR_END_Date EPS 2010-09-10.10 2009-08-10.20 When I tried to convert Year_END_Date to character format using select(PLC, format(Year_END_Date,format = "%B %d, %Y"), EPS) I get an error Error: Can't subset