I'm reading in a CSV in R using read.csv
.
It's a list of countries and their respective identifiers, such as:
Name, ID
Andorra, AD
Russia, RU
"VIRGIN ISLANDS, BRITISH", VG
Reading it in like this will separate on the comma enclosed by the quotation marks, which means that for the 3rd element it will show VIRGIN ISLANDS as the country name, and then BRITISH
as the ID
.
How do I force it to read in everything encapsulated by the quotation marks as a single element?
Thanks