rankSC: Rank-transformation of single-case data files

Description Usage Arguments Value Author(s) See Also Examples

View source: R/rankSC.R

Description

Rank-transformation of single-case data files

Usage

1
rankSC(data, var, grand = TRUE, ...)

Arguments

data

A single-case data frame. See scdf to learn about this format.

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 paramters passed to the rank function.

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: fillmissingSC(), longSCDF(), outlierSC(), scaleSC(), shiftSC(), smoothSC(), truncateSC()

Examples

1
2
Huber2014_rank <- rankSC(Huber2014, var = "compliance")
plot(Huber2014_rank, style = "grid2")

scan documentation built on Feb. 12, 2021, 3:01 a.m.