vec_cast.jdate: Cast an object to a 'jdate' object

View source: R/jdate.R

vec_cast.jdateR Documentation

Cast an object to a jdate object

Description

Cast an object to a jdate object

Usage

## S3 method for class 'jdate'
vec_cast(x, to, ...)

Arguments

x

Vectors to cast.

to

Type to cast to. If NULL, x will be returned as is.

...

For vec_cast_common(), vectors to cast. For vec_cast(), vec_cast_default(), and vec_restore(), these dots are only for future extensions and should be empty.

Value

A vector of jdate objects.

See Also

as_jdate is a convenience function that makes use of the casts that are defined for vec_cast.jdate() methods.


shide documentation built on Sept. 11, 2024, 6:37 p.m.