mi_clean_data {MantaID} | R Documentation |
Reshape data and delete meaningless rows.
Description
Reshape data and delete meaningless rows.
Usage
mi_clean_data(data, cols = everything(), placeholder = c("-"))
Arguments
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 |
Value
A tibble with two columns("ID" and "class")
Examples
data <- tibble::tibble(
"class1" = c("A","B","C","D"),
'class2' = c("E","F","G","H"),
'class3' = c("L","M","-","O")
)
mi_clean_data(data)
[Package MantaID version 1.0.2 Index]