1
我用下面的代碼:如何將本地數據幀轉換爲R中的常規數據幀?
library(dplyr)
by.tweet %>%
group_by(tweet) %>%
summarise(created = sum(created), number = sum(number))
data.frame()
和它打印:
Source: local data frame [3 x 3]
tweet created number
1 negative <NA> 57876
2 neutral <NA> 124029
3 positive <NA> 92244
但我想這在常規的數據幀。我怎麼寫這個?謝謝!