View source: R/rowwise_has_data.R
has_any_data | R Documentation |
Test rowwise if each row is missing / has all data in select columns
has_any_data(.data, ..., .name)
has_all_data(.data, ..., .name)
missing_any_data(.data, ..., .name)
missing_all_data(.data, ..., .name)
.data |
A data frame, data frame extension (e.g. a tibble), or a lazy data frame (e.g. from dbplyr or dtplyr). See Methods, below, for more details. |
... |
< |
.name |
Name of the new column with the logical index. |
data(mtcars)
mtcars[1, 1] <- NA
mtcars[2, ] <- NA
mtcars[1:3, 1:3] |>
has_any_data(mpg:disp, .name = "has_any") |>
has_all_data(mpg:disp, .name = "has_all") |>
missing_any_data(mpg:disp, .name = "missing_any") |>
missing_all_data(mpg:disp, .name = "missing_all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.