set.rm_all_NA_rows: Remove rows that are completely NA

Description Usage Arguments Examples

View source: R/dataset.R

Description

Remove rows that are completely NA

Usage

1

Arguments

df

data.frame or data.table.

Examples

1
2
3
4
5
6
na_df <- data.frame(col1 = c("Hola", NA), col2 = c("Chicka", NA))
na_df <- set.rm_all_NA_rows(na_df)
na_df
   col1   col2
1: Hola Chicka
2:   NA     NA

dads2busy/dataplumbr documentation built on July 2, 2021, 3:24 a.m.