impute_time: Impute a partial time object with a timestamp or specific...

View source: R/impute.R

impute_timeR Documentation

Impute a partial time object with a timestamp or specific fields

Description

Impute a partial time object with a timestamp or specific fields

Usage

impute_time(x, time, tz, ...)

impute_date(x, time, ..., res = "day")

impute_time_min(x, tz = "-1200", ...)

impute_date_min(x, ..., res = "day")

impute_time_max(x, tz = "+1400", ...)

impute_date_max(x, ..., res = "day")

impute_time_mid(x, tz = "GMT", ...)

impute_date_mid(x, ..., res = "day")

## Default S3 method:
impute_time(x, time, tz = "GMT", ...)

## S3 method for class 'POSIXt'
impute_time(x, time, tz = "GMT", ...)

## S3 method for class 'partial_time'
impute_time(x, time, tz = "GMT", ..., res = NULL)

Arguments

x

a datetime-like object to impute

time

a datetime-like object to use for imputation

tz

a character timezone name for imputation, a character value to use as the timezone part of the datetime or an numeric minute offset.

...

additional individual named fields to impute. Can be one of "year", "month", "day", "hour", "min", "sec", "tzhour"

res

the highest resolution datetime field used for imputation. Either a character value represented the highest resolution field or NULL to impute all fields. For the impute_date family of functions, defaults to "day", or NULL otherwise.

Value

a new partial_time with specified fields imputed by values provided by the imputation time


parttime documentation built on May 29, 2024, 6:25 a.m.