Skip to contents

Class Constructors

parttime()
Create a parttime object
timespan()
Create a partial timespan object
as.parttime()
Coerce an object to a parttime object
as.timespan()
Cast an object to a timespan

Class Helpers

has_partial()
Test whether a partial_time object is incomplete
has_partial_date()
Test whether a partial_time object's date components are incomplete
has_partial_time()
Test whether a partial_time object's time components are incomplete
is_partial_time() is.partial_time() is_parttime() is.parttime()
Shorthand for checking partial time inheritance
is_timespan()
Shorthand for checking timespan inheritance

Generics

base generics

c(<partial_time>)
Concatenate parttimes
is.na(<partial_time>)
Check if elements of a partial time vector is NA
is.na(<timespan>)
Check if elements of a partial time vector is NA
max(<partial_time>)
Get the maximum of a parttime vector
min(<partial_time>)
Get the minimum of aparttime vector
pmax()
Maxima and Minima
pmax(<partial_time>)
Get the elementwise maximum of parttime vectors
pmin()
Maxima and Minima
pmin(<partial_time>)
Get the elementwise minimum of parttime vectors
dim(<partial_time>)
parttime vector dimensions
format(<partial_time>)
Format a parttime object
format(<pillar_shaft_partial_time>)
parttime pillar formatting

stats-style timeseries accessors

start()
start S3 generic
end()
end S3 generic

lubridate-style accessors & assignment

lubridate interoperability with available generics (such as year and year<-)

year() `year<-`() month() `month<-`() mday() `mday<-`() day() `day<-`() hour() `hour<-`() minute() `minute<-`() second() `second<-`() tz() `tz<-`()
Datetime component access and assignment functions
as.interval(<partial_time>)
Wrapper for lubridate as.interval
as.interval(<timespan>)
Wrapper for lubridate as.interval
is.timespan()
Shorthand for checking timespan inheritance

pillar methods

format(<pillar_shaft_partial_time>)
parttime pillar formatting
pillar_shaft(<partial_time>)
parttime as pillar shaft
obj_print_data(<partial_time>)
parttime data output
obj_print_footer(<partial_time>)
parttime footer
obj_print_header(<partial_time>)
parttime output header
type_sum(<partial_time>)
parttime type name

Operators

Ops(<partial_time>)
Handler for Ops generics for partial_time objects
Ops(<timespan>)
Handler for Ops generics for timespan objects
`+`(<partial_time>,<Period>)
Addition of a lubridate Period to a parttime partial_time
definitely()
"Definitely" generic for resolving uncertainty
definitely(<partial_time_logical>)
Determine whether a partial_time logical matrix is definitely TRUE
possibly()
"Possibly" generic for resolving uncertainty
possibly(<partial_time_logical>)
Determine whether a partial_time logical matrix is possibly TRUE

Imputation

Utilities

includes()
Determine whether one object includes another
includes(<partial_time>)
Determine whether a partial time contains an object
includes.partial_time(<partial_time>)
Test for whether a timestamp could be included within parttime uncertainty
normalize_month_day()
Normalize days in month back to day limit for a given month
propagate_na()
Propegate field missingness from higher to lower resolution
reflow_fields()
Reflow potentially invalid time components to adjacent fields
to_gmt()
Generic for coercing timestamps to GMT timezone
trim()
Shorten a timespan

Indexing and indexed assignment

Base-R-style vector indexing and assignment as a vector, or accessors to the underlying matrix.

vctrs interoperability

vec_cast(<logical.partial_time>)
Cast partial time to logical
vec_cast(<partial_time>)
Cast to partial time object
vec_cast(<partial_time.character>)
Coerce character date representations to parttime objects
vec_cast(<partial_time.default>)
Default handler for casting to a partial time
vec_cast(<partial_time.matrix>)
Cast a matrix to a partial time
vec_cast(<timespan>)
Cast to timespan object
vec_cast(<timespan.character>)
Cast partial time to timespan, representing uncertainty as a range
vec_cast(<timespan.default>)
Default handler for casting to a timespan
vec_cast(<timespan.double>)
Cast an array to a timespan
vec_cast(<timespan.numeric>)
Cast an array to a timespan
vec_cast(<timespan.partial_time>)
Cast partial time to timespan, representing uncertainty as a range
vec_ptype_abbr(<partial_time>)
Abbreviated partial time class name
vec_ptype_full(<partial_time>)
Full parttime class name