View source: R/fix_functions.R
remove_empty | R Documentation |
Removes empty rows or columns from data.frames
remove_empty(x, remove_rows = TRUE, remove_cols = TRUE, track = TRUE)
x |
A data.frame |
remove_rows |
Remove empty rows? |
remove_cols |
Remove empty columns? |
track |
Track changes? |
mydata <- data.frame(a = c(NA, NA, NA, NA, NA), b = c(1, NA, 3, 4, 5),
c=c(NA, NA, NA, NA, NA), d=c(4, NA, 5, 6, 3))
remove_empty(mydata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.