I'm trying to read this file of a list of countries into R. R can't seem to be able to read it since the imported dataset appears as empty.
This is my code:
universe = read.csv("country-keyword-list.csv")
No error message appeared. Stata read the file just fine.
This is the link to the CSV file in question:
read.csv("country-keyword-list.csv", fileEncoding="UTF-16LE")
. Maybe this solves the problem.read.table
rather thanread.csv
. The file has no header and no commas.txt <- readLines(fl, skipNul = TRUE);txt <- txt[txt != ""]
works.fl <- "country-keyword-list.csv"
.