1

gtrendsR尝试使用时间段下载谷歌搜索时,我丢失了日期值all

library('gtrendsR')

g1 = gtrends(keyword = 'blues', geo = 'US', onlyInterest = T, time = "today+5-y")
head(g1$interest_over_time)

       date hits geo      time keyword gprop category
1 2014-06-22   21  US today+5-y   blues   web        0
2 2014-06-29   22  US today+5-y   blues   web        0
3 2014-07-06   21  US today+5-y   blues   web        0
4 2014-07-13   21  US today+5-y   blues   web        0
5 2014-07-20   21  US today+5-y   blues   web        0
6 2014-07-27   21  US today+5-y   blues   web        0

g2 = gtrends(keyword = 'blues', geo = 'US', onlyInterest = T, time = "all")
head(g2$interest_over_time)

  date hits geo time keyword gprop category
1 <NA>   36  US  all   blues   web        0
2 <NA>   36  US  all   blues   web        0
3 <NA>   37  US  all   blues   web        0
4 <NA>   38  US  all   blues   web        0
5 <NA>   36  US  all   blues   web        0
6 <NA>   41  US  all   blues   web        0

任何线索如何解决这个问题?

4

0 回答 0