Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201945

Replace month abbreviation with number

$
0
0

For example: df$Date

SN              Date
1        07-Mar-2019
2        06-Feb-2019

how do I set a condition to replace the value "Mar" = "03" and "Feb" = "02" in df$Date?

So that the output will be:

SN         Date
 1   07-03-2019
 2   06-02-2019

anyone can help? Thank you


Viewing all articles
Browse latest Browse all 201945

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>