vec_cast.jdatetime {shide}R Documentation

Cast an object to a jdatetime object

Description

Cast an object to a jdatetime object

Usage

## S3 method for class 'jdatetime'
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 jdatetime objects.

See Also

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


[Package shide version 0.2.1 Index]