Skip to content

Consider character subsetting #312

Closed

Description

@hadley

Something is wrong here:

library(tibble)

df <- tibble(x = 1:3)
rownames(df)
#> [1] "1" "2" "3"
df[rownames(df), ]
#> # A tibble: 3 x 1
#>       x
#>   <int>
#> 1    NA
#> 2    NA
#> 3    NA

I'm not sure if it's rownames() or [.tibble though

Activity

  1. krlmlr commented on Oct 4, 2017

    @krlmlr
    Member

    Do we need to consider leftover row names when performing character subsetting?

  2. added a commit that references this issue on Nov 3, 2017
  3. added a commit that references this issue on Dec 28, 2017
  4. github-actions commented on Dec 12, 2020

    @github-actions
    Contributor

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

  5. locked and limited conversation to collaborators on Dec 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions