Learn R Programming

phinterval (version 1.0.0)

is_phintish: Test if the object is a phinterval or interval

Description

This function returns TRUE for <phinterval> and <Interval> vectors and returns FALSE otherwise.

Usage

is_phintish(x)

Value

TRUE if x is a <phinterval> or <Interval>, FALSE otherwise.

Arguments

x

An object to test.

Examples

Run this code
is_phinterval(phinterval())
is_phinterval(interval())
is_phinterval(as.Date("2020-01-01"))

Run the code above in your browser using DataLab