Delete Rows or Columns Containing only NA

hsDelNaRowsOrCols(df, rows = TRUE, drop = FALSE)

Arguments

df

data frame

rows

if TRUE, rows that only contain NAs are deleted, else columns.

drop

if TRUE and only one row/column remains this row/column is returned in forms of a vector instead as a data frame.