Skip to content

select(.data, 0) #82

@earowang

Description

@earowang

It's a corner case. Current select(.data, 0) throws an error. But I would expect select(.data, 0) returns a data frame with 0 columns as .data[, 0].

iris[, 0]
#> data frame with 0 columns and 150 rows
dplyr::select(iris, 0)
#> Error in inds_combine(.vars, ind_list): Each argument must yield either positive or negative integers

Maybe the issue is more related to tidyselect::vars_select().

Created on 2019-01-04 by the reprex package (v0.2.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions