> library(ggplot2)> library(plyr)> library(dplyr)> library(tidyr)> anscombe_tidy <- anscombe %>%+ mutate(observation = seq_len(n())) %>%+ gather(key, value, -observation) %>%+ separate(key, c("variable", "set"), 1, convert = TRUE) %>%+ mutate(set = c("I", "II", "III", "IV")[set]) %>%+ spread(variable, value)代码中的%>%含义是什么?
- 1 回答
- 0 关注
- 1297 浏览
添加回答
举报
0/150
提交
取消