tidyverse / tibble

A modern re-imagining of the data frame
https://tibble.tidyverse.org/
Other
671 stars 130 forks source link

Warn with `drop = TRUE` ? #1570

Open krlmlr opened 7 months ago

krlmlr commented 7 months ago

Should this give a warning?

x <- tibble::tibble(a = 1:3, b = 2:4)

x[1, , drop = TRUE]
#> # A tibble: 1 × 2
#>       a     b
#>   <int> <int>
#> 1     1     2

Created on 2024-03-12 with reprex v2.1.0