How to emulate SQLs rank functions in R?

前端 未结 4 1004
时光说笑
时光说笑 2020-12-02 11:20

What is the R equivalent of rank functions like the Oracle ROW_NUMBER(), RANK(), or DENSE_RANK() (\"assign integer values to the rows

4条回答
  •  北海茫月
    2020-12-02 12:18

    I don't think there's a direct equivalent to Oracle's Analytic functions. Plyr will likely be able to achieve some of the analytic functions, but not all directly. I'm sure R can replicate each function separately but I don't think there's a single package that will do it all.

    If there's a specific operation you need to achieve in R, then do some googling, and if you come up empty, ask a specific question here on StackOverflow.

提交回复
热议问题