View source: R/defaultFunctions.R
binarize | R Documentation |
This function will transform data into binary data (0,1). If the data is already binary, this function does nothing.
binarize(x, split = "median", na.rm = TRUE, removeNArows = TRUE, verbose = TRUE)
x |
A data frame or matrix |
split |
Either a function to split on (as character or as function) or a vector. e.g., |
na.rm |
The |
removeNArows |
Logical, should rows with |
verbose |
Output progress to the console? |
A binarized data frame
Sacha Epskamp <mail@sachaepskamp.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.