-1
library(ggplot2)
library(dplyr)
library(tidyr)
NEI_baltimore$year.type<-paste(NEI_baltimore$year,NEI_baltimore$type,sep = ".")
baltimore_sums<-aggregate(NEI_baltimore$Emissions,by=NEI_baltimore["year.type"],FUN=sum)
separate(data = baltimore_sums,col = year.type,into=c("year","type"),sep = ".")
我已经使用下面的代码来分割已粘贴的列以获取该粘贴列中的聚合函数。单独显示错误的函数
我收到警告,并没有值在分裂列
Warning message:
Too many values at 16 locations: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
请正确格式化您的代码。这是不可读的。阅读帮助。 – Bhas