Function to remove blank rows/columns from a df
Source:R/remove_blank_rows_cols.R
remove_blank_rows_cols.RdFunction to remove blank rows/columns from a df
Arguments
- df
a data.frame
- convert
a logical to indicate if you want to modify
dfin the parent environment, or if not simply return a modified version ofdf- verbose
logical to print information on changes to the global environment or external files. Defaults to options()$verbose.
- which
one of
"rows","cols", or"both". Default is"both"to removing both empty rows and empty columns.