add2csv {NNbenchmark} | R Documentation |
Create or Append a data.frame to a csv File
Description
Create or append a data.frame to a csv file. Column names are added at creation and ignored at the append steps.
Usage
add2csv(x, file = "results.csv", dir = ".")
Arguments
x |
a data.frame or a matrix. |
file |
character. The filename. |
dir |
character. The directory in which the file is written.
Default value |
Value
Nothing in the console. A csv file on the disk.
Examples
results_csv <- tempfile("results", fileext = ".csv")
x <- data.frame(a = 1:3, b = 4:6)
add2csv(x, file = results_csv)
add2csv(x*10, file = results_csv)
add2csv(x*100, file = results_csv)
read.csv(file = results_csv)
[Package NNbenchmark version 3.2.0 Index]