years: Converts dates to the corresponding numeric years

View source: R/years.R

yearsR Documentation

Converts dates to the corresponding numeric years

Description

Converts dates to the corresponding numeric years

Usage

years(y)

Arguments

y

A vector of class "Date" or "POSIX" date-time.

Examples


y <- Sys.time()
years(y)


wql documentation built on Oct. 25, 2026, 5:06 p.m.