na_drop_rows: na_drop_rows

Description Usage Arguments Details Value Examples

View source: R/na_drop_rows.R

Description

Drop rows of a table whose values are all NA

Usage

1
2
3

Arguments

tbl

data-like object

Details

na_drop_rows removes all rows whose only values are NA. It works for all table-like objects.

Value

An object of the same class as tbl with rows containing all NA values removed

Examples

1
2
3
4
5
6
7
  data(iris)
  
  tbl <- iris[1:5,]
  tbl[1:3,] <- NA
  tbl
  
  na_drop_rows(tbl) 

decisionpatterns/na.actions documentation built on Aug. 25, 2020, 8:04 p.m.