View source: R/mi_clean_data.R
mi_clean_data | R Documentation |
Reshape data and delete meaningless rows.
mi_clean_data(data, cols = everything(), placeholder = c("-"))
data |
A dataframe or tibble or data.table or matrix. Names of the column will be regard as the class of ID included in column. |
cols |
Character vectors. Columns of |
placeholder |
Character vectors. IDs included in |
A tibble with two columns("ID" and "class")
data <- tibble::tibble(
"class1" = c("A", "B", "C", "D"),
"class2" = c("E", "F", "G", "H"),
"class3" = c("L", "M", "-", "O")
)
mi_clean_data(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.