powered by
Reshape data and delete meaningless rows.
mi_clean_data(data, cols = everything(), placeholder = c("-"))
A tibble with two columns("ID" and "class")
A dataframe or tibble or data.table or matrix. Names of the column will be regard as the class of ID included in column.
Character vectors. Columns of data that contain the IDs
data
Character vectors. IDs included in placeholder will be omitted.
placeholder
data <- tibble::tibble( "class1" = c("A", "B", "C", "D"), "class2" = c("E", "F", "G", "H"), "class3" = c("L", "M", "-", "O") ) mi_clean_data(data)
Run the code above in your browser using DataLab