On Fri, 15 May 2020, Poizot Emmanuel writes:
> Dear all,
>
> I've a data frame with a column "Date":
>
> [1] 11-1993 11-1993 11-1993 11-1993 11-1993 11-1993 11-1996 11-1996 11-1996
> [10] 11-1996 11-1996 11-1996 02-1998 02-1998 02-1998 02-1998 02-1998 02-1998
> [19] 11-1998 11-1998 11-1998 11-1998
Hi,
For the usual R text to date conversions, you need a complete date. Since you
are missing the day of the month in your source text, you would need to impute
that part before making the conversion.
Also, since you don't appear to need to worry about time of day, just use
as.Date(), instead
Dear all,
I've a data frame with a column "Date":
[1] 11-1993 11-1993 11-1993 11-1993 11-1993 11-1993 11-1996 11-1996 11-1996
[10] 11-1996 11-1996 11-1996 02-1998 02-1998 02-1998 02-1998 02-1998 02-1998
[19] 11-1998 11-1998 11-1998 11-1998 11-1998 11-1998 10-2001 10-2001 10-2001
[28] 10-2001 10-
3 matches
Mail list logo