README.md

cattonum

CRAN_Status_Badge Build
Status AppVeyor Build
Status Coverage
status Total
Downloads lifecycle

Summary

cattonum (cat to num) provides different ways to encode categorical features as numerics. It includes the following:

There are many existing packages with which to encode categorical features, including (among others):

The goal of cattonum is to be a one-stop shop for all categorical encoding needs. Nothing more, nothing less.

Installation

The development version of cattonum can be installed from GitHub.

remotes::install_github("bfgray3/cattonum")

The latest official release of cattonum can be installed from CRAN.

install.packages("cattonum")

Usage

library(cattonum)
data(iris)
head(catto_loo(iris, response = Sepal.Length))
#>   Sepal.Length Sepal.Width Petal.Length Petal.Width  Species
#> 1          5.1         3.5          1.4         0.2 5.004082
#> 2          4.9         3.0          1.4         0.2 5.008163
#> 3          4.7         3.2          1.3         0.2 5.012245
#> 4          4.6         3.1          1.5         0.2 5.014286
#> 5          5.0         3.6          1.4         0.2 5.006122
#> 6          5.4         3.9          1.7         0.4 4.997959


Try the cattonum package in your browser

Any scripts or data that you put into this service are public.

cattonum documentation built on May 2, 2018, 5:06 p.m.