binarize(x, split = "median", na.rm = TRUE, removeNArows = TRUE)split = "mean" will split every variable on the mean of that variable, split=2 will make every value above 2 a 1 and every value below 2 a 0 and a vector of the same length as each variable in the dataset will use those elements to split.
na.rm argument used in the split function.
NA be removed?