简体   繁体   English

为什么R — dplyr包返回任意行号?

[英]Why does R — dplyr package return arbitrary row numbers?

Take the following example from CRAN'S dplyr introduction: 从CRAN的dplyr简介中获取以下示例:

select(flights, tail_num = tailnum)
 #> # A tibble: 336,776 x 1
 #>   tail_num
 #>      <chr>
 #> 1   N14228
 #> 2   N24211
 #> 3   N619AA
 #> 4   N804JB
 #> ... with 336,772 more rows

Why are these row id s being returned and is there anyway to remove them? 为什么返回这些行id ,并且无论如何都将其删除?

These id s are only lines number that are actually not stored. 这些id只是实际上未存储的行号。 They are only here for display purposes and they are not real Ids 它们仅用于显示目的,不是真正的ID

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM