factor_: Fast Factor Generation

Description Usage Arguments

View source: R/fast_factor.R

Description

This function generates factors quickly using faster sorting and matching algorithms available in Rcpp.

Usage

1

Arguments

x

An object of atomic type integer, numeric, character or logical.

levels

An optional character vector of levels. Is coerced to the same type as x. By default, we compute the levels as sort(unique(x)).


Kmisc documentation built on May 29, 2017, 1:43 p.m.

Related to factor_ in Kmisc...