> 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 關注
- 1347 瀏覽
添加回答
舉報
0/150
提交
取消