Y1_year: Naive parsing of dates into years

Description Usage Arguments Value Examples

Description

The Y1 field holds the publication date information. This normally contains a year, and sometimes also contains month, day, or season information. This function extracts just the year and recodes it as a Date on the first day of the year.

Usage

1

Arguments

x

character vector (Y1 field)

Value

vector of Dates corresponding to years

Examples

1
2
3
4
5
## Not run: 
# To get at the messy finer-grained information, try:
str_split_fixed(x, coll("/"), 4)

## End(Not run)

agoldst/mlaibr documentation built on May 10, 2019, 7:34 a.m.