Neal Richardson created ARROW-17572:
---------------------------------------

             Summary: [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
             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)

Reply via email to