Forum Discussion
sashan
9 years agoRegular Visitor
r script code page to Unicode
I am pulling twitter data for my Machine Learning experiment After I get the data from my search, I want to turn it to a dataframe like this: tweets <- searchTwitter("Bicester Village", n=1000) ...
Anonymous
9 years agoNot applicable
Hi sashan,
Can you share some detail content about this issue?
Since you mentioned about use r script with twitter api, you can also take a look at below article :
Twitter Analysis using SSIS 2016 and SQL Server R Services
Regards,
Xiaoxin Sheng
- Anonymous9 years agoNot applicable
Hi sashan
I too got the same issue.
I have solved this as below
library(twitteR)
library(stringi)
tweets <- searchTwitter("Bicester Village", n=100,lang="en")
df <- twListToDF(tweets)
df$text <- stri_encode(df_tweets$text, "", "UTF-8")But strange thing is it works fine in RStudio but not in power bi query sometimes