drop_rows_all_na | R Documentation |
Drop rows of a table whose values are all NA
drop_rows_all_na(.tbl)
filter_all_na(.tbl)
drop_rows_any_na(.tbl)
filter_any_na(.tbl)
.tbl |
data-like object |
na_drop_rows
removes all rows whose only values are NA. It works for all
table-like objects.
An object of the same class as .tbl
with rows containing all
NA
values removed
dplyr::filter()
data(iris)
.tbl <- iris[1:5,]
.tbl[1:2,] <- NA
.tbl[3,1] <- NA
.tbl
filter_all_na(.tbl)
filter_any_na(.tbl)
drop_rows_all_na(.tbl)
drop_rows_any_na(.tbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.