【发布时间】:2021-04-07 16:12:28
【问题描述】:
我有很多像这样按日期组织的气候数据。
df = data.frame(date = c("2011-03-24", "2011-02-03", "2011-01-02"), Precipitation = c(20, 22, 23))
我想像这样组织它
df = data.frame(year = c("2011", "2011","2011"), month = c("03","02","01"), day = c("24", "03", "02"), pp = c(20, 22, 23))
我有很多信息,我无法手动完成。
有人可以帮我吗?非常感谢。
【问题讨论】: