powered by
factorize(x, limits, labels)
length(limits)
length(labels)+1
fit
delevels
imputation
x=seq(-1,1,length.out=5) f=factorize(x,c(-Inf,0,1e-99,Inf),c("neg","zero","pos")) print(x) print(f)
Run the code above in your browser using DataLab