-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior
Milestone
Description
Per Hadley's comment on the manipulatr thread, select is supposed to return the first instance of a name mentioned, i.e.,
names( select(iris, starts_with("S"), sepal.wid = Sepal.Width))
[1] "Sepal.Length" "Sepal.Width" "Species"
is correct. However, when you use the not option, it gets overruled when additional conditions are specified, i.e.
> names( select(iris, -starts_with("P"), Sepal.Width))
[1] "Sepal.Width"
should return all names that don't start with P.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugan unexpected problem or unintended behavioran unexpected problem or unintended behavior