I am trying to import a txt file with either read.delim
or read.csv
:
read.delim("DATASET ANALISIS ACV COMPLETO.txt", sep = "\t")
And it returns the following error:
Error in type.convert.default(data[[i]], as.is = as.is[i], dec = dec, :
invalid multibyte string at '<a8>?.0'
I have seen a similar question (Invalid multibyte string in read.csv) but it is a little bit old and I only found answers regarding the specific file he wants to import, but I found the problem affects also the script and it won't read special characters (spanish language): "interacci?n" instead of "interacción"
I have found that the only solution is to downgrade the R version to 4.1.3 from 4.3.0. I have tried every solution from the previous question I mentioned, but I just want to solve this in general, not every time that I want to import a file or write an script.