binary.levels.split | R Documentation |
Create a list of binary levels from factors. Compares a vector x against a set of factors and returns a list for each factor which indicates whether x is equal to that factor or not.
binary.levels.split(x, f = sort(unique(x)))
x |
vector |
f |
factors. Defaults to the unique set of values in x. |
list of binary levels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.