ranks {scan} | R Documentation |
Rank-transformation of single-case data files
Description
This function is superseded by the more versatile
transform.scdf
function.
Usage
ranks(data, var, grand = TRUE, ...)
Arguments
data |
A single-case data frame. See |
var |
A string or string vector with the names of the variables to be ranked. |
grand |
If TRUE, ranks will be calculated across all cases. If FALSE ranks are calculated within each case. |
... |
Additional parameters passed to the |
Value
An scdf
object where the values of the variable(s) are
replaced with ranks.
Author(s)
Juergen Wilbert
See Also
Other data manipulation functions:
add_l2()
,
as.data.frame.scdf()
,
as_scdf()
,
fill_missing()
,
moving_median()
,
outlier()
,
scdf()
,
select_cases()
,
set_vars()
,
shift()
,
smooth_cases()
,
standardize()
,
truncate_phase()
Examples
ranks(Huber2014, var = "compliance")
[Package scan version 0.61.0 Index]