year: Parse a date string

Description Usage Arguments Details Value Author(s) Examples

Description

Parses the year or month from a date

Usage

1
2
year(x)
month(x)

Arguments

x

a date

Details

functions are a shortcut for as.numeric(format.Date(x, "%Y"))

Value

the year or month

Author(s)

Chris Stubben

Examples

1
2
data(proks)
table(year(proks$released))

cstubben/genomes2 documentation built on May 14, 2019, 12:25 p.m.