library(tidyverse)
library(readr)
# Toy data
df <- structure(list(all = c("000300000000 332686630 5654 0.50000",
"000300000000 3326866300000000015654 0.50000"
)), class = c("tbl_df", "tbl", "data.frame"), row.names = c(NA,
-2L))
# Write
write_delim(df, "toy.txt", delim = " ", col_names = FALSE)
When I use the above code to write a text file, each line gets surrounded by quotation marks. How can I get rid of them("
)?
"000300000000 332686630 5654 0.50000"
"000300000000 3326866300000000015654 0.50000"
"000300000000 332686630 5654 0.50000"
"000300000000 3326866300000000015654 0.50000"