Description Usage Arguments Details Value See Also Examples
Drop rows of a table whose values are all NA
1 2 3 4 5 6 7 | 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()
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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.