Re: [R] remove

2017-06-10 Thread Bert Gunter
Also ?ifelse rather than if() I think. Cheers, Bert 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 Sat, Jun 10, 2017 at 10:17 PM, Jeff Newmiller wrote: >

Re: [R] remove

2017-06-10 Thread Jeff Newmiller
You are using a slash in your format string to separate sub-fields but your data uses a dash. -- Sent from my phone. Please excuse my brevity. On June 10, 2017 8:18:37 PM PDT, Val wrote: >Hi all, >I have a date issue and would appreciate any help. > >I am reading a field data and n one of th

[R] remove

2017-06-10 Thread Val
Hi all, I have a date issue and would appreciate any help. I am reading a field data and n one of the columns I am expecting a date but has non date values such as character and empty. space. Here is a sample of my data. KL <- read.table(header=TRUE, text='ID date 711 Dead 712 Uknown 713