0

I have a data frame with 1 column and in POSIXlt format "2014-11-25" "2014-06-08". How can I extract the date part of this column? The result should be 25, 08

There are functions months, weekdays but I cannot find such function for date. Really appreciate your help

TDo
  • 686
  • 4
  • 9
  • 22
  • 1
    You mean the day? Function `day` from `lubridate` package. Or `format(x, "%d")`. You have a lot of choice. –  Jun 23 '15 at 04:18
  • Thanks a lot for your answer – TDo Jun 23 '15 at 04:21
  • Hi Pascal, do you know how to get just the day and month, not the year (ex: 11/25, 06/08) in POSIXlt format? – TDo Jun 23 '15 at 04:37
  • 1
    For your future knowledge, I suggest you to read `?format` and `?strptime`. –  Jun 23 '15 at 04:38

0 Answers0