R 删除“&引用;保存的txt文件中的标记
我正在尝试保存字符的数据帧 我试过:R 删除“&引用;保存的txt文件中的标记,r,R,我正在尝试保存字符的数据帧 我试过: df1 <- data.frame(c1= "abc",c2="def",c3="ghi") df1 write.table(df1, "df1.txt") 如何保存没有标记的文件?您可以使用选项quote=FALSE df1 <- data.frame(c1= "abc",c2="def",c3="ghi") df1 write.table(df1, "df1.txt", quote = FALSE) df1您可以使用选项quote=F
df1 <- data.frame(c1= "abc",c2="def",c3="ghi")
df1
write.table(df1, "df1.txt")
如何保存没有标记的文件?您可以使用选项
quote=FALSE
df1 <- data.frame(c1= "abc",c2="def",c3="ghi")
df1
write.table(df1, "df1.txt", quote = FALSE)
df1您可以使用选项quote=FALSE
df1 <- data.frame(c1= "abc",c2="def",c3="ghi")
df1
write.table(df1, "df1.txt", quote = FALSE)
df1Setquote=FALSE
df1 <- data.frame(c1= "abc",c2="def",c3="ghi")
df1
write.table(df1, "df1.txt", quote = FALSE)
从write.table的文档中:
write.table(x, file = "", append = FALSE, quote = TRUE, sep = " ",
eol = "\n", na = "NA", dec = ".", row.names = TRUE,
col.names = TRUE, qmethod = c("escape", "double"),
fileEncoding = "")
“引用
逻辑值(TRUE或FALSE)或数字向量。如果为TRUE,则任何字符或因子列都将被双引号包围。如果为数字向量,则其元素将作为要引用的列的索引。在这两种情况下,如果写入行名和列名,则将引用它们。如果为FALSE,则不引用任何内容。“quote=FALSE
df1 <- data.frame(c1= "abc",c2="def",c3="ghi")
df1
write.table(df1, "df1.txt", quote = FALSE)
从write.table的文档中:
write.table(x, file = "", append = FALSE, quote = TRUE, sep = " ",
eol = "\n", na = "NA", dec = ".", row.names = TRUE,
col.names = TRUE, qmethod = c("escape", "double"),
fileEncoding = "")
“引用
逻辑值(TRUE或FALSE)或数字向量。如果为TRUE,则任何字符或因子列都将被双引号包围。如果为数字向量,则其元素将作为要引用的列的索引。在这两种情况下,如果写入行名和列名,则将它们引用。如果为FALSE,则不引用任何内容。”