View source: R/flextable-getListing.R
convertVectToBinary | R Documentation |
Convert vector to a bincode of 0/1 based on consecutive values in the vector.
convertVectToBinary(x)
x |
Vector. |
Integer vector of same length than x
.
Laure Cougnaud
x <- c("group1", "group1", "group1", "group2", "group2", "group3", "group4", "group4")
convertVectToBinary(x = x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.