R programming for data analysis. Section 3. Basic data management. Lecture 6.Handling date values in data frame
Sys.Date() returns today’s date
date() returns the current date and time
outputs date in a specific format
today = Sys.Date()
format(today, format="%b %d %y")
format(today, format="%A")
date1 = as.Date("2022-01-16")
date2 = as.Date("2022-07-29")
days = date2 - date1
calculat a time interval in different units
difftime(date2, date1, units="weeks")
difftime(date2, date1, units="mins")
Main sections in this playlist - R programming for beginners
Section 1 Get started with R environment
Section 2 R data structure, create datasets
Section 3 Basic data management
Section 4 Advanced data management
Section 5 Using R graphic ggplot2
Section 6 dplyr()
#rprogramming
#rstudio
#dataframe
#date
#datevalue
#rdatacode
Download
0 formats
No download links available.
R programming for beginners | Handling date values in R | NatokHD