I can already append a row to a CSV using cat which makes that very easy:
cat("my row, 1, 2, 3, 4", "mydf.csv",sep="
", append=TRUE)
However as far as I know you cannot use cat with a whole dataframe (multiple columns and rows).
I am doing this because I am writing many DFs to a CSV and I want to append the multiple CSVs using write.table. The dataframes all have the same number of columns.
I thought about doing a loop over rows to write with cat but that doesn't sound like the best way - any one have good way of doing this in R?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…