How To Export .XLSX/ .CSV Files In R!
Exporting data with R is one of the most important things you can possibly do with this language, let’s go ahead and show you how to do this!
Exporting .XLSX Files
In order to export a .XLSX file from R we need to use the xlsx package, we do by importing this package like this:
library(xlsx)
Next up we want to make sure you already have a dataset loaded in, let’s say we have our dataset stored in a variable called “df” like below
df <- c(1,2,3,4,5,6)