You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/14 08:31:24 UTC

[GitHub] [arrow] dragosmg commented on pull request #12855: ARROW-14942: [R] Bindings for lubridate's dpicoseconds, dnanoseconds, desconds, dmilliseconds, dmicroseconds

dragosmg commented on PR #12855:
URL: https://github.com/apache/arrow/pull/12855#issuecomment-1098850022

   I've been thinking a bit about this. Do you think it's worth having a helper function (to avoid all the repetition), something like `make_duration(x, unit)`?
   Where:
   ```r
   make_duration <- function(x, unit) {
     x <- build_expr("cast", x, options = cast_options(to_type = int64()))
     x$cast(duration(unit))
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org