PepsiCo
PepsiCo

Reputation: 1409

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"

Upvotes: 2

Views: 606

Answers (1)

Chase
Chase

Reputation: 69201

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

See ?lapply for details.

Upvotes: 6

Related Questions