Send and read SEO data to Excel/CSV
CSV and Excel file remain one of amongst the most well-used file formats for exchange data.
Read your data from a CSV
Export your data into a CSV
assuming your data is store inside df var, fairly simple:
Read an excel
Export your data into an excel file
A little bit more complex, we’ll use the ‘xlsx’ package
A few more tips for you:
I’ll like to use the sheetName option to explicitly name the tab. The default name is “Sheet1”. Quite useful to have a record of when the file has been generated for example. Replace last instruction what follows and you’ll be able to know.
Another good one that I like is to send the excel file to a Shared folder directly. Replace first instruction by
Of course, replace the file path with yours.
Import and merge a batch of CSV files
Aggregate several CSV files into one using file name as a column
Last updated