简体   繁体   中英

How to use the function “rank” in the function “lapply” in R?

R Version 2.11.1 32-bit on Windows 7

Now I get the code: lapply(x, rank)

but I want the "rank" to be: ties.method="first"

As part of the optional argument ... : lapply(x, rank, ties.method = "first") .

See ?lapply for details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM