I want to read a csv where one of the columns contains quotes, and within the quotes the string contains commas.
CSV Header:
id,name,promo,categories,price,unit_price
CSV example row:
142251, TULI,,"Men√∫,Limpieza,Limpiadores,Pisos,Curadores",$ 73.65,$81.83 x Lt
I want to have a dataFrame like this:
id=142251
name=TULI
promo=
categories=Men√∫,Limpieza,Limpiadores,Pisos,Curadores
price=$ 73.65
unit_price=$81.83 x Lt
I've tried doing data <- read.csv(file="data.csv", sep=",", quote="")
but I get "Error in read.table(file = file, header = header, sep = sep, quote = quote, : more columns than column names" ERROR.
I am aware that the solution will be very simple, but I cannot find the solution. Thanks in advance.