मुझे लगता है कि "नया कॉलम" से आपका मतलब पंक्ति नाम है जो डिफ़ॉल्ट रूप से लिखा जाता है। उन्हें दबाने के लिए, सेट करें जब write.table
या write.csv
पर कॉल करें।
write.table package:utils R Documentation
Data Output
Description:
‘write.table’ prints its required argument ‘x’ (after converting
it to a data frame if it is not one nor a matrix) to a file or
connection.
Usage:
write.table(x, file = "", append = FALSE, quote = TRUE, sep = " ",
eol = "\n", na = "NA", dec = ".", row.names = TRUE,
col.names = TRUE, qmethod = c("escape", "double"))
write.csv(...)
write.csv2(...)
...
row.names: either a logical value indicating whether the row names of
‘x’ are to be written along with ‘x’, or a character vector
of row names to be written.
col.names: either a logical value indicating whether the column names
of ‘x’ are to be written along with ‘x’, or a character
vector of column names to be written. See the section on
‘CSV files’ for the meaning of ‘col.names = NA’.
+1 मदद फाइलों की प्रतिलिपि बनाने के लिए –
इस बारे में कठोर होने की आवश्यकता नहीं है - उदा। मैंने दस्तावेज़ों की जांच की, लेकिन write.matrix के लिए, और इसमें ऐसा कोई विकल्प नहीं है –