Message-ID: <20250914221300.09a5ec37@Tarkus>
Date: 2025-09-14T19:13:00Z
From: Ivan Krylov
Subject: trouble with exporting a data.frame with " (quotation mark) in some columns into a tab delimited file, then importing the file
In-Reply-To: <70a3275e-1584-44f6-9794-d612982ecff7@univ-fcomte.fr>
? Sun, 14 Sep 2025 19:39:58 +0200
Patrick Giraudoux <patrick.giraudoux at univ-fcomte.fr> ?????:
> write.table(db, file = "db.txt", row.names = FALSE, quote = FALSE,
> sep = "\t")
>
> db_import<-read.delim("db.txt")
Since write.table() had been called with quote=FALSE, you'll need to
read the file with quote="" to prevent read.delim() from interpreting
the quotes.
--
Best regards,
Ivan