We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
and make this possible
cleanepi::common_na_strings #> [1] "missing" "NA" "N A" "N/A" #> [5] "#N/A" "NA " " NA" "N /A" #> [9] "N / A" " N / A" "N / A " "na" #> [13] "n a" "n/a" "na " " na" #> [17] "n /a" "n / a" " a / a" "n / a " #> [21] "NULL" "null" "" "\\?" #> [25] "\\*" "\\." "not available" "Not Available" #> [29] "NOt available" "not avail" "Not Avail" "nan" #> [33] "NAN" "not a number" "Not A Number" library(tidyverse) tibble::tribble( ~case_id, ~outcome, ~gender, ~hospital, "d1fafd", "NA", "f", "Military Hospital", "53371b", "NA", "m", "Connaught Hospital", "f5c3d8", "Recover", "f", "other", "6c286a", "Death", "f", "NA", "0f58c4", "Recover", "f", "other" ) %>% cleanepi::replace_missing_values( target_columns = "outcome" ) #> # A tibble: 5 × 4 #> case_id outcome gender hospital #> <chr> <chr> <chr> <chr> #> 1 d1fafd <NA> f Military Hospital #> 2 53371b <NA> m Connaught Hospital #> 3 f5c3d8 Recover f other #> 4 6c286a Death f NA #> 5 0f58c4 Recover f other
Created on 2024-11-05 with reprex v2.1.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
and make this possible
Created on 2024-11-05 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: