Learn R Programming

clock (version 0.7.1)

is_duration: Is x a duration?

Description

This function determines if the input is a duration object.

Usage

is_duration(x)

Value

TRUE if x inherits from "clock_duration", otherwise FALSE.

Arguments

x

[object]

An object.

Examples

Run this code
is_duration(1)
is_duration(duration_days(1))

Run the code above in your browser using DataLab