Skip to content

replace_na() will replace any empty input #1168

@DavisVaughan

Description

@DavisVaughan
tidyr::replace_na(list(character()), replace = "foo")
#> [[1]]
#> [1] "foo"

Created on 2021-10-18 by the reprex package (v2.0.1)

Due to is_complete()'s implementation. It should just replace NULLs


Not sure why replace_na() is using is_complete()? Should not be using "incompleteness" as a replacement condition, should probably just be using "missingness" (i.e. through vec_equal_na())

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviormissing values 💀

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions