Skip to content

Updated method of replacing all NAs in numeric columns#1

Open
grantengel-septa wants to merge 2 commits intodvrpc:masterfrom
SEPTA-Data-Group:master
Open

Updated method of replacing all NAs in numeric columns#1
grantengel-septa wants to merge 2 commits intodvrpc:masterfrom
SEPTA-Data-Group:master

Conversation

@grantengel-septa
Copy link

With most current version of dplyr, replacing NAs with 0 using "mutate_all" applies to character columns as well, which throws a data type error. Replacing with "mutate" + new verbs "across" & "where" to replace NAs only in those columns that are numeric data type. According to dplyr documentation, "mutate" + "across" supersedes "mutate_all".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant