Skip to content

More descriptive error message needed if column names are NA #1101

@holgerbrandl

Description

@holgerbrandl
names(iris)[1] <- NA
iris %>% filter(Species=="setosa")
iris %>% arrange(Species)

Both calls give

Error in if (any(names2(x) == "")) { 
missing value where TRUE/FALSE needed

and it is not clear that the problem is a column which is not used at all in the method call. It should rather say something like
"Error: Column(s) with missing name(s) in input table. To use dplyr all columns are required to have a name."

The problem seems related to tidyverse/tidyr#68

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions