as part of a larger project, I used Rstudio to prepare data files and merged them. I then exported the new dataframe, using the following functions:
Code: Select all
#### export of finaler Datensatz to csv ####
write.table(dat, file="dat_HH1_Skalen.csv", sep= ";", dec = ",", col.names = NA, fileEncoding = "UTF-8")
####save RData-file ####
save(dat, file = "dat_HH1_Skalen.Rdata")
#### export of data.frame to sav ####
write_sav(dat, "dat_HH1_Skalen.sav")
I know it has something to do with encoding but I am not sure how to fix it. Does anyone have a similar problem and could fix it?unable to convert string to the requested encoding (invalid byte sequence)
Thanks in advance!
Cheers,
sabo