is.Date: Test if object is a 'Date' object

View source: R/utility_functions.R

is.DateR Documentation

Test if object is a Date object

Description

Tests if an object is a Date object and returns a logical vector of length 1. IDate objects are also Date objects, but date objects from package date are not.

Usage

is.Date(obj)

Arguments

obj

object to test on

Value

'TRUE' if 'obj' is of class '"Date"' or '"IDate"'.

Author(s)

Joonas Miettinen

See Also

get.yrs, is_leap_year, as.Date


popEpi documentation built on Aug. 23, 2023, 5:08 p.m.