read.csv2 - Portuguese Encoding Problem

Remember put a reproducible example of data, maybe the csv file in a drive link for better help of all community.

Try with something like this:

  data<- read.csv("path_yourfile.csv", header = TRUE, sep = "," , dec = ".",
                         filled =TRUE, comment.char = "", strip.white = TRUE,
                         stringsAsFactors = TRUE, encoding="UTF-8")
1 Like