{"width":"100%","title":"nest\u3057\u305f\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u306e\u6271\u3044","type":"rich","height":"190","description":"nest\u3057\u305f\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u3092\u6271\u3044\u65b9\uff08\u30e1\u30e2\u7528\uff09 library(tidyverse) iris %>% group_by(Species) %>% nest() %>% mutate(data = map2(data, Species, ~mutate(.x, Species_index = as.numeric(.y)))) %>% mutate(id = seq(1,3)) %>% mutate(data = map2(data, id, ~slice(.x, seq.int(.y)))) %>% mutate(MeanSepalLength = map_dbl(data, ~pull(.x\u2026","version":"1.0","author_url":"https://blog.hatena.ne.jp/jerrarrdan/","blog_title":"caffeee&teaaa","author_name":"jerrarrdan","provider_name":"Hatena Blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fooooooha.hatenablog.com%2Fentry%2F2018%2F11%2F17%2F073306\" title=\"nest\u3057\u305f\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u306e\u6271\u3044 - caffeee&amp;teaaa\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://ooooooha.hatenablog.com/","published":"2018-11-17 07:33:06","provider_url":"https://hatena.blog","url":"https://ooooooha.hatenablog.com/entry/2018/11/17/073306","categories":["r","dplyr","purrr"]}