且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在purrr :: map()中使用dplyr :: count()时出错

更新时间:2022-06-19 09:24:54

如果要获取带有值计数的小标题列表,可以使用

If you want a list of tibbles with value counts, you can use

nycflights13::flights %>% 
  select_if(is.character) %>% 
  map(~count(data.frame(x=.x), x))