I have following column which contains year and month but with a space between them:
date
2000 Oct
2000 Nov
2000 Dec
2001 Jan
2001 Feb
2001 Mar
[1] 2000 Oct 2000 Nov 2000 Dec 2001 Jan 2001 Feb 2001
I want to convert this to a date column
I tried following:
as.Date(df$date, "%YYYY %mm")
but it gave me all NA(s)