{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2022%2F01%2F14%2F223437\" title=\"R&amp;tidyverse purrr::map_int\u304c\u5358\u7d14\u306a\u8db3\u3057\u7b97\u3067\u5931\u6557\u3059\u308b\u7406\u7531 - potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/potisan/","type":"rich","categories":["R","tidyverse","\u307e\u3068\u3081\u672a\u767b\u9332\uff08\u7ba1\u7406\u7528\uff09"],"author_name":"potisan","description":"purrr::map_int\u95a2\u6570\u304c\u5358\u7d14\u306a\u8db3\u3057\u7b97\u3067\u5931\u6557\u3057\u305f\u3068\u304d\u3001\u6570\u5024\u30ea\u30c6\u30e9\u30eb\u306e\u578b\u304c\u539f\u56e0\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u6b21\u306e\u30b3\u30fc\u30c9\u3067(1)\u306f\u30a8\u30e9\u30fc\u3001(2)\u306f\u6210\u529f\u3057\u307e\u3059\u3002\u9055\u3044\u306f\u8db3\u3059\u6570\u304c1\u304b1L\u304b\u3067\u3059\u3002 require(purrr) 1:10 %>% map_int(~.x+1) #> Error: Can't coerce element 1 from a double to a integer 1:10 %>% map_int(~.x+1L) #> [1] 2 3 4 5 6 7 8 9 10 11 \u539f\u56e0\u306fR\u306e\u6570\u5024\u30ea\u30c6\u30e9\u30eb\u304c\u30b5\u30d5\u30a3\u30c3\u30af\u30b9\u306a\u3057\u3067double\u578b\u3067\u3042\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f\u6b21\u306e\u30b3\u30fc\u30c9\u3067\u78ba\u304b\u3081\u3089\u308c\u307e\u3059\u3002 ty\u2026","provider_name":"Hatena Blog","url":"https://potisan-programming-memo.hatenablog.jp/entry/2022/01/14/223437","width":"100%","provider_url":"https://hatena.blog","height":"190","blog_title":"potisan\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e1\u30e2","blog_url":"https://potisan-programming-memo.hatenablog.jp/","published":"2022-01-14 22:34:37","version":"1.0","image_url":null,"title":"R&tidyverse purrr::map_int\u304c\u5358\u7d14\u306a\u8db3\u3057\u7b97\u3067\u5931\u6557\u3059\u308b\u7406\u7531"}