Reshape data and delete meaningless rows.
mi_clean_data.Rd
Reshape data and delete meaningless rows.
Usage
mi_clean_data(data, cols = everything(), placeholder = c("-"))
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)
#> # A tibble: 11 × 2
#> ID class
#> <chr> <chr>
#> 1 A class1
#> 2 E class2
#> 3 L class3
#> 4 B class1
#> 5 F class2
#> 6 M class3
#> 7 C class1
#> 8 G class2
#> 9 D class1
#> 10 H class2
#> 11 O class3