wp_year: Function to extract the year

Description Usage Arguments Methods (by class)

View source: R/wp_year.R

Description

Function to extract the year from a timestamp of e.g. class POSIXlt, POSIXct, Date, or character. If the option is of type character it should be in the form of yyyy-mm-dd.

Usage

1
2
3
4
5
6
7
wp_year(timestamp)

## S3 method for class 'POSIXlt'
wp_year(timestamp)

## Default S3 method:
wp_year(timestamp)

Arguments

timestamp

Some sort of timestamp e.g. of class POSIXlt, POSIXct, Date, or character. If the option is of type character it should be in the form of yyyy-mm-dd.

Methods (by class)


johndharrison/wikipediatrend documentation built on May 19, 2019, 5:14 p.m.