[
https://issues.apache.org/jira/browse/ARROW-17572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Neal Richardson updated ARROW-17572:
------------------------------------
Description:
{{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.
was:
{{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.
> [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
> Fix For: 10.0.0
>
>
> {{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)