Suppose I have a csv file looks like this:
Type,ID,NAME,CONTENT,RESPONSE,GRADE,SOURCE A,3,\"\",\"I have comma, ha!\",I have open double quotes\",A,\"\"
fread from data.table handles this just fine:
fread
data.table
library(data.table) fread('Type,ID,NAME,CONTENT,RESPONSE,GRADE,SOURCE A,3,"","I have comma, ha!",I have open double quotes",A,""') # Type ID NAME CONTENT RESPONSE GRADE SOURCE #1: A 3 I have comma, ha! I have open double quotes" A