powered by
This function is provided primarily to be used together with dbplyr when querying a database. It will also work in dplyr against data frames.
dbplyr
dplyr
year(date)
The year
The date.
year(as.Date("2000-02-01"))
Run the code above in your browser using DataLab