cut_and_reorder: Reorder a variable quickly for a regression.

Description Usage Arguments Value

View source: R/cut_and_reorder.R

Description

Reorder a variable quickly for a regression.

Usage

1
cut_and_reorder(x, cut.seq = c(-Inf, seq(0, 40, 5), Inf), omit = 22.5)

Arguments

x

Numeric vector.

cut.seq

(Optional) Numeric vector to pass to cut

omit

(Optional) Bin with this number will be placed first in vector.

Value

Factorized version of x, with given sequence and omitted level first.


pbaylis/baylisR documentation built on Nov. 8, 2019, 6:20 p.m.