vec_cast.timespan function

Cast to timespan object

Cast to timespan object

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

Returns

A partial_timespan vector

  • Maintainer: Doug Kelkhoff
  • License: MIT + file LICENSE
  • Last published: 2024-01-24