year: Extract the year from a date

View source: R/DbiDateFunctions.R

yearR Documentation

Extract the year from a date

Description

This function is provided primarily to be used together with dbplyr when querying a database. It will also work in dplyr against data frames.

Usage

year(date)

Arguments

date

The date.

Value

The year

Examples

year(as.Date("2000-02-01"))


DatabaseConnector documentation built on May 29, 2024, 6:14 a.m.