【问题标题】:How to use the function "rank" in the function "lapply" in R?如何在R中的函数“lapply”中使用函数“rank”?
【发布时间】:2011-04-16 01:36:26
【问题描述】:

Windows 7 上的 R 版本 2.11.1 32 位

现在我得到了代码:lapply(x, rank)

但我希望“等级”为:ties.method="first"

【问题讨论】:

  • 帮助文件里都有...

标签: r argument-passing rank


【解决方案1】:

作为可选参数的一部分 ...: lapply(x, rank, ties.method = "first")

详情请见?lapply

【讨论】:

    猜你喜欢
    • 2018-11-15
    • 2021-02-16
    • 2017-09-01
    • 1970-01-01
    • 2016-05-18
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    相关资源
    最近更新 更多