autoUnits: Auto Time Interval Units

View source: R/autoUnits.R

autoUnitsR Documentation

Auto Time Interval Units

Description

Convert time interval units to natural values based on magnitude of difference.

Usage

autoUnits(x)

Arguments

x

an object inheriting from class difftime

Author(s)

Eric Archer eric.archer@noaa.gov

Examples

autoUnits(as.difftime("0:3:35"))
autoUnits(as.difftime("15:3:35"))
autoUnits(ISOdate(2000, 5, 1) - ISOdate(2000, 4, 20))


swfscMisc documentation built on Sept. 8, 2023, 5:55 p.m.