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

Extracting day with lubridate

$
0
0

I have a date column, but it's written all the way around, Ex: "31-12-2019" When I try to extract the day using the day function from lubridate : day("31-12-2019") it returns "19" instead of "31"

PS : I've already tried to change to column type using as.Date, but it reorders my data and I don't want that


Viewing all articles
Browse latest Browse all 201894

Trending Articles



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