I'm a newbie literally doing my final test on the Coursea course. My issue is the chunks used on the course never work for me, so I do all the work in RStudio. However, for the dataset I'm working on the column names have a \n in all of them. I tried replacing the \n with an underscore, space and period but it doesn't recognize the column name. Obviously when I run it with the \n, even to try to rename the column name the \ gives an error. Does anyone know how to get around this?
[1] "Company \n(Maker-if known)" "Specific Bean Origin\nor Bar Name" "REF"
[4] "Review\nDate" "Cocoa\nPercent" "Company\nLocation"
[7] "Rating" "Bean\nType" "Broad Bean\nOrigin"