How to Use fwrite Function in R
- R-PROGRAMMING
The fwrite() function from data.table package is used to write data frame or data table in a file.
The following method shows how you can do it with syntax.
Method: Use fwrite() Function
library(data.table) fwrite(df,"File name") The following example shows how to use fwrite() function in R.
Use fwrite() Function to Write Data Frame in File Let’s see how we can write data frame in CSV file.
# Import library library(data.