this data.frame is in rows 2001:3000 ? I don't understand..
all dataframes begin on their first row and end on their last row.
the default head value is 6, so df_list[[1]], df_list[[2]],df_list[[3]], are each 6 rows long(
the first 6 of their groups in the order as found in the original iris).
(df_list <- group_by(iris,Species) %>% group_map(.f = ~head(.),.keep=TRUE))
print(df_list[[2]])
# A tibble: 6 x 5
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
<dbl> <dbl> <dbl> <dbl> <fct>
1 7 3.2 4.7 1.4 versicolor
2 6.4 3.2 4.5 1.5 versicolor
3 6.9 3.1 4.9 1.5 versicolor
4 5.5 2.3 4 1.3 versicolor
5 6.5 2.8 4.6 1.5 versicolor
6 5.7 2.8 4.5 1.3 versicolor
row numbers are 1 to 6. they couldnt be otherwise.