ceilingdate: Round a date up to a unit

View source: R/primitives.R

ceilingdateR Documentation

Round a date up to a unit

Description

Round a date up to a unit

Usage

ceilingdate(x, unit = c("day", "week", "month", "year"))

Arguments

x

An atomic vector.

unit

Time unit to round to.

Value

A Date vector.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.