listwise_deletion.Rd
Perform listwise deletion (the entire rows is disregarded if the row has one `NA` value)
listwise_deletion(data, cols = dplyr::everything())
A data.frame or a data.frame extension (e.g. a tibble).
Columns that need to use listwise deletion. See `dplyr::dplyr_tidy_select` for available options.
An object of the same type as .data with rows revmoed if the row has one `NA` value
test_df = data.frame(col1 = c(1,2,3),col2 = c(1,NA,3),col3 = c(1,2,NA))
listwise_deletion(test_df,col1:col2) # you can see that the row with NA in col3 is not deleted
#> col1 col2 col3
#> 1 1 1 1
#> 2 3 3 NA