我一直试图从Gtrends中提取新冠病毒数据,但出现以下错误:
我正在R中使用grendsR包.
# google search for covid (week started XX - SUN): https://trends.google.com/trends/explore?geo=US-HI&q=covid
search_covid <- gtrends(keyword = 'covid', geo = 'US-HI', time = 'today+5-y') %>%
pluck("interest_over_time") %>%
as_tibble() %>%
select(date, hits) %>%
rename(search_covid = hits) %>%
mutate(date = ymd(date) + days(1),
search_covid = as.numeric(search_covid %>% ifelse(. == '<1', 0, .)))
search_covid %>% ts_plot()
search_covid %>% tail()
我收到此错误:随时间变化的兴趣错误(widget,comparison\u item,tz):
任何帮助都将不胜感激.