Learn R Programming

scan (version 0.53)

ranks: Rank-transformation of single-case data files

Description

Rank-transformation of single-case data files

Usage

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.

See Also

Other data manipulation functions: as.data.frame.scdf(), fill_missing(), outlier(), shift(), smooth_cases(), standardize(), truncate_phase()

Examples

Run this code
# NOT RUN {
Huber2014_rank <- ranks(Huber2014, var = "compliance")
plot(Huber2014_rank, style = "grid2")
# }

Run the code above in your browser using DataLab