[R] trouble with exporting a data.frame with " (quotation mark) in some columns into a tab delimited file, then importing the file
Ivan Krylov
|kry|ov @end|ng |rom d|@root@org
Mon Sep 15 23:13:32 CEST 2025
В Sun, 14 Sep 2025 21:31:43 +0200
Patrick Giraudoux <patrick.giraudoux using univ-fcomte.fr> пишет:
> Errorin write.table(db, file = "db.txt", row.names = FALSE, quote =
> "", : invalid 'quote' specification
write.table() and read.table()/read.delim() are a bit asymmetric. In
this case, write.table() needs quote = FALSE, but read.delim() needs
quote = "":
write.table(db, "db.txt", row.names = FALSE, quote = FALSE, sep = "\t")
db_import <- read.delim("db.txt", quote = "")
--
Best regards,
Ivan
More information about the R-help
mailing list