Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

R doesn't want to read emojis from Google Sheets

$
0
0

I'm coding in R language.

I've made a survey on Google Forms and send results to Google Sheets.

Then I tried to download results to R:

url = 'https://docs.google.com/spreadsheets/d/e/2PACX-1vRkkjx8AOgNdfDW9wtaHR8wtMQOrgTB1O1wwMcJLGre3E_MixhEaIGUI7gfHw5gBQX7-gcNkRUkMM3X/pub?output=csv'

google <- read.csv(url, sep = ',',  header = T, fileEncoding = "UTF-8")

and faced the problem:

Warning:
In scan(file = file, what = what, sep = sep, quote = quote, dec = dec,  :
  incorrect input found in input connection 'https://docs.google.com/spreadsheets/d/e/2PACX-1vRkkjx8AOgNdfDW9wtaHR8wtMQOrgTB1O1wwMcJLGre3E_MixhEaIGUI7gfHw5gBQX7-gcNkRUkMM3X/pub?output=csv'

There were imported just 96 rows out of all to my R dataset.

I checked my Google Sheets and saw that 96th row contains emoji and stops downloading another rows. What should I do there or which encoding should I choose to have an opprotuninty to read the emojis in R?

R version: 1.2.5033


Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>