cit.discretize: cit.discretize

View source: R/palimpsest_utils.R

cit.discretizeR Documentation

cit.discretize

Description

Discretize a continous variable by specified lim cut-off(s)

Usage

cit.discretize(x, lim, quant = FALSE, addlevels = FALSE)

Arguments

x

a vector

lim

cut-off(s)

quant

if TRUE (default FALSE) the x is discretize by quantile and lim is considered as cut-off(s) for quantile, ie 0<lim<1

addlevels

add character levels indicating the cut-offs (i.e. for un cut-off iqq levels=c("<iqq",">=iqq") )


FunGeST/Palimpsest documentation built on June 2, 2024, 4:21 a.m.