Reputation: 79
I have a data.frame
, with a typical date column goes like this: 29-Jan-14
,...
However, some of the date values begin with a character T
, they look like this: T29-Jan-14
,...
How do I delete that T
?
Upvotes: 0
Views: 893
Reputation: 193517
Just use sub
on the vector of "dates".
> sub("^T", "", "T29-Jan-14")
[1] "29-Jan-14"
Upvotes: 1