switch_cat_repr | R Documentation |
Categorical data with n observations and R levels can typically be represented as two forms in R: a factor with length n, or an n by K indicator matrix with elements being 0 or 1. This function is to switch the form of a categorical object from one to the another.
switch_cat_repr(obj)
obj |
an object representing categorical data, either a factor or an indicator matrix with each row representing an observation. |
categorical object in the another form.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.