You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi I am trying to pull some brandwatch mentions data with this package and everything seems to be working fine except in the data column a lot of values are coming up as NA. here is my code:
hi I am trying to pull some brandwatch mentions data with this package and everything seems to be working fine except in the data column a lot of values are coming up as NA. here is my code:
library(brandwatchR)
library(dplyr)
library(xlsx)
setwd("")
bwr_auth(un = "",
pw = "",
refresh = FALSE,
cache = FALSE)
View(bwr_cat_get(
project_id =
))
my_projects <- bwr_projects_get()
head(my_projects)
my_mentions1 <- bwr_mentions_get(
project_id = ,
query_id = ,
date_range = c("2019-04-01", "2019-08-12"))
my_mentions2 <- bwr_mentions_get(
project_id = ,
query_id = ,
date_range = c("2019-03-01", "2019-04-01"))
my_mentions3 <- bwr_mentions_get(
project_id = ,
query_id = ,
date_range = c("2019-01-20", "2019-03-01"))
my_mentions4 <- bwr_mentions_get(
project_id = ,
query_id = ,
date_range = c("2019-01-18", "2019-01-20"))
my_mentions5 <- bwr_mentions_get(
project_id = ,
query_id = ,
date_range = c("2019-01-17", "2019-01-18"))
my_mentions6 <- bwr_mentions_get(
project_id = ,
query_id = ,
date_range = c("2018-10-1", "2019-01-12"))
glimpse(my_mentions1)
library(dplyr)
my_mentions1 <- my_mentions1 %>%
as_tibble %>%
select(date, sentiment, categories)
my_mentions2 <- my_mentions2 %>%
as_tibble %>%
select(date, sentiment, categories)
my_mentions3 <- my_mentions3 %>%
as_tibble %>%
select(date, sentiment, categories)
my_mentions4 <- my_mentions4 %>%
as_tibble %>%
select(date, sentiment, categories)
my_mentions5 <- my_mentions5 %>%
as_tibble %>%
select(date, sentiment, categories)
my_mentions6 <- my_mentions6 %>%
as_tibble %>%
select(date, sentiment, categories)
my_mentions <- bind_rows(my_mentions1, my_mentions2, my_mentions3, my_mentions4, my_mentions5, my_mentions6)
write.csv(as.matrix(my_mentions), "mentions.csv")
(I have removed project/ query ID and name and password/ setwd)
The resulting CSV is a file with some dates, but most of them are filled with NA.
Any help would be really appreciated!
The text was updated successfully, but these errors were encountered: