ezMultiplicated | R Documentation |
n
times?Keeps multiplicated values by setting them to TRUE.
ezMultiplicated(x, n = 2, mode = "keepFirst")
x |
a vector, matrix or list. |
n |
a positive integer specifying how many times a value needs to occur to return true. |
mode |
specifies how to keep multiplicated values. Possible modes:
|
Returns a logical indicating which values are multiplicated according to the specified mode
and n
.
Rehrauer, Hubert
Schmid, Peter
v1 = c(1,2,3,4,5,4,3,2,3,4,5,6,7,8,7)
ezMultiplicated(v1)
ezMultiplicated(v1,3)
ezMultiplicated(v1,2,"all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.