Skip to content

nest function doesn't seem to be right? #160

@happyshows

Description

@happyshows

chickwts %>% tbl_df
Source: local data frame [71 x 2]

Hi,

I was running the code in documentation and it seems the nested data is off by one row.

weight feed
(dbl) (fctr)
1 179 horsebean
2 160 horsebean
3 136 horsebean
4 227 horsebean
5 217 horsebean
6 168 horsebean
7 108 horsebean
8 124 horsebean
9 143 horsebean
10 140 horsebean
.. ... ...

chickwts %>% nest(weight)
feed data
1 horsebean 368, 390, 379, 260, 404, 318, 352, 359, 216, 222, 283, 332
2 linseed 179, 160, 136, 227, 217, 168, 108, 124, 143, 140
3 soybean 309, 229, 181, 141, 260, 203, 148, 169, 213, 257, 244, 271
4 sunflower 325, 257, 303, 315, 380, 153, 263, 242, 206, 344, 258
5 meatmeal 243, 230, 248, 327, 329, 250, 193, 271, 316, 267, 199, 171, 158, 248
6 casein 423, 340, 392, 339, 341, 226, 320, 295, 334, 322, 297, 318

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