is_yearmon: Check if the object is of class 'yearmon'

Description Usage Arguments Value Author(s) See Also Examples

Description

Check if the object is of class yearmon

Usage

1

Arguments

x

object

Value

logical

Author(s)

Thomas P. Harte

See Also

yearmon

Examples

1
2
3
4
5
6
  is_yearmon(as.yearmon("2017-07-04"))
  is_yearmon("2017-07-04")

  x<- as.yearmon(seq(as.Date("2017-07-01"), len=4, by=1))
  is_yearmon(x)
  is_yearmon(as.character(x))

tharte/tutils documentation built on Feb. 11, 2020, 9:17 a.m.