0

I currently have a database with dates in character format yyyy-mm format. e.g. 2009-01 and missing values.

I'm struggling to convert this into a date format.

Dorian349
  • 1,521
  • 1
  • 9
  • 18

1 Answers1

0

You could use ym from lubridate package:

lubridate::ym('2009-01')
#[1] "2009-01-01"
AlexB
  • 3,061
  • 2
  • 17
  • 19