What a GREAT teacher professor Choure. We need more professors like you to spread the gospel about using R for data analysis/science, this wonderful tool has been undermined for too long.
# any format # Install and load the anytime package install.packages("anytime") library(anytime) # Your data frame with a column of date strings (assume it's named 'date_column') your_data_frame
What a GREAT teacher professor Choure. We need more professors like you to spread the gospel about using R for data analysis/science, this wonderful tool has been undermined for too long.
Thanks for good words. This appreciation really motivates to work more.
great video, did we can change 2 different type of date was save in one list to date type . c("2010-10-12", "11-10-2010") ?
Yes. We can. Just use tryFormats=c("format1","format1"...) In arguments of as.Date()
Well explained. What if I want to convert a whole column and find the difftime?
# any format
# Install and load the anytime package
install.packages("anytime")
library(anytime)
# Your data frame with a column of date strings (assume it's named 'date_column')
your_data_frame
The date also contained time data. How do I convert and find the difftime?
#try this
# Example dates in string format
date_str1