unabbreviateYear: Determine year from various abbreviations

Description Usage Arguments Author(s) See Also Examples

Description

Various data files may contain various abbreviations for years. For example, 99 refers to 1999, and 8 refers to 2008. Sometimes, even 108 refers to 2008 (the idea being that the "zero" year was 1900). This function deals with the three cases mentioned. It will fail if someone supplies 60, meaning year 2060 as opposed to 1960.

Usage

1

Arguments

year

a year, or vector of years, possibly abbreviated

Author(s)

Dan Kelley

See Also

Other things related to time: ctimeToSeconds, julianCenturyAnomaly, julianDay, numberAsHMS, numberAsPOSIXct, secondsToCtime

Examples

1
fullYear <- unabbreviateYear(c(99, 8, 108))


Search within the oce package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.