ranked_x: ranked_x

Description Usage Arguments Value

View source: R/ranked_x.R

Description

Converts indicated columns to ranked versions of themselves. Takes a numeric matrix and converts any columns indicated by the rank_cols input to their ranks.

Usage

1
ranked_x(x_mat, rank_cols = NULL, ties_method = "average")

Arguments

x_mat

Numeric matrix (adjust non-numeric columns prior)

rank_cols

Names or index of columns to be converted to ranks

ties_method

How to break ties in ranks, by default uses "average" (same as the rank function's default). for further options

Value

x_mat, potentially adjusted for ranks


rzgross/uRbanmatching documentation built on Dec. 22, 2021, 8:20 p.m.