Skip to content

Better error for replace_na #356

@eibanez

Description

@eibanez

It would be nice to improve the following error to say something like "b is not a valid column." Not a big deal, but it would be nice from a debugging perspective.

> library(tidyr)
> data = data_frame(a = c(1:3, NA))
> data2 <- data %>%
+   replace_na(list(a = 100, b = 0))
Error: `x` must be a vector

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions