You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dewey Dunnington (Jira)" <ji...@apache.org> on 2022/12/12 14:56:00 UTC
[jira] [Updated] (ARROW-17572) [R] Add binding for random() function
[ https://issues.apache.org/jira/browse/ARROW-17572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dewey Dunnington updated ARROW-17572:
-------------------------------------
Fix Version/s: (was: 11.0.0)
> [R] Add binding for random() function
> -------------------------------------
>
> Key: ARROW-17572
> URL: https://issues.apache.org/jira/browse/ARROW-17572
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Reporter: Neal Richardson
> Priority: Major
>
> {{random()}} generates uniform distributed values. We can probably bind that somehow to {{runif()}} in dplyr (will have to ignore the `n` argument). If nothing else, it can be used to implement {{slice_sample()}} (see also ARROW-13766, ARROW-13767).
> FWIW there's {{sql_random()}} in dbplyr, not sure if that's actually exposed meaningfully or just used to implement slice_sample.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)