2016-05-12 35 views

回答

-1

假設你有一個與列:類別和區域,稱爲DF data.frame

df2 <- aggregate.data.frame(x = df["Area"], by = df["Category"], FUN = sum)