Parsing a CSV with irregular quoting rules using readr
问题 I have a weird CSV that I can't parse with readr. Let's call it data.csv . It looks something like this: name,info,amount_spent John Doe,Is a good guy,5412030 Jane Doe,"Jan Doe" is cool,3159 Senator Sally Doe,"Sally "Sal" Doe is from New York, NY",4451 If all of the rows were like first one below the columns row – two character columns followed by an integer column – this would be easy to parse with read_csv : df <- read_csv("data.csv") However, some rows are formatted like the second one, in