This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
spread()
的开发已完成,对于新代码我们建议切换到pivot_wider()
,它更易于使用,功能更丰富,并且仍在积极开发中。df %>% spread(key, value)
等价于df %>%ivot_wider(names_from = key,values_from = value)
https://tidyr.tidyverse.org/reference/spread.html
Development on
spread()
is complete, and for new code we recommend switching topivot_wider()
, which is easier to use, more featureful, and still under active development.df %>% spread(key, value)
is equivalent todf %>% pivot_wider(names_from = key, values_from = value)
https://tidyr.tidyverse.org/reference/spread.html