Description Usage Arguments Value Author(s) See Also Examples
Transform a data with a count response into a data with binary response.
1 | binarize_pois(dat, response)
|
dat |
A data whose features are categorical, and has a column of natural numbers that correspond to the count response |
response |
A character; the name of column that stores the count response |
A data.table that has all of categorical features in dat
,
where each given combination of features (rows) are populated by integers
based on response
. The function will not keep those combinations
with a zero count.
Junkyu Park
binarize_binom
,
change_form
,
Binarizing data using data.table
1 2 | # data(rich_pois)
binarize_pois(rich_pois, 'count')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.