Yea: Year Vectors

View source: R/Yea.R

YeaR Documentation

Year Vectors

Description

Creates objects of type "hd_Yea". hd_Yea objects contain a "stats" attribute, with the following information: NA values (n_na), percentage weight of NA values (prop_na) and if (TRUE or FALSE) the set of given values conform a sequence (is_sequence).

Usage

Yea(x = integer())

Arguments

x

object to be created as Yea type

Examples

x <- c(1800:1803, NA)
year_values <- Yea(x)
year_values
class(year_values)
attr(year_values, "stats")$is_sequence


jpmarindiaz/homodatum documentation built on May 1, 2023, 7:24 p.m.