ranks: Rank-transformation of single-case data files

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ranks.R

Description

Rank-transformation of single-case data files

Usage

1
2
3
ranks(data, var, grand = TRUE, ...)

rankSC(...)

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: fill_missing(), longSCDF(), outlier(), shift(), smooth_cases(), standardize(), truncate_phase()

Examples

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

scan documentation built on Feb. 22, 2021, 5:08 p.m.