Top "As.date" questions

as.

Convert character to class Date

I have a data frame with a character column of dates. When I use as.Date, most of my dates …

r date lubridate as.date r-faq
What are the "standard unambiguous date" formats for string-to-date conversion in R?

Please consider the following $ R --vanilla > as.Date("01 Jan 2000") Error in charToDate(x) : character string is not in a …

r date date-formatting strptime as.date
Fastest way to parse a date-time string to class Date

I have a column with dates as character in the format 10/17/2017 12:00:00 AM. I want parse the string and keep only …

r date datetime as.date
R aggregate data.frame with date column

I have the data frame resambling the one in the below Date Expenditure Indicator 29-01-2011 5455 212 25-01-2012 5452 111 11-02-2011 365 5 …

r object aggregate as.date
Convert week number to date

I have a data frame in R with the week of the year that I would like to convert to …

r as.date
error message: do not know how to convert 'dataFrame$col' to class “Date”

I have a data frame with records from the month of October 2017. Column 6 has the dates as a character vector. …

r as.date
Setting xlim with dates in R

I need to set the x-axis limit of a plot in R, but my values are dates (%m/%d/%Y …

r plot as.date
R set default origin for as.Date

Is there a way to set default origin for as.Date? I did this function to workaround: as.date=function(…

r as.date
How to avoid date formatted values getting converted to numeric when assigned to a matrix or data frame?

I have run into an issue I do not understand, and I have not been able to find an answer …

r matrix as.date
as.Date command in R returns NA

My date variable keeps returning a "NA" when i use the as.Date() command. I have practically tried all the …

r na as.date