View source: R/convert_to_xlsx.R
convert_to_xlsx | R Documentation |
convert_to_xlsx()
converts a given file to XLSX format using Excel's
"Save As" functionality. This replicates the output you'd get if you opened
the file and saved it manually.
convert_to_xlsx(file, xlsx_file = NULL)
file |
The path to a file readable by Excel |
xlsx_file |
The path to the new xlsx file. The default only changes the
extension of |
This function solves the inverse problem of Excel's (in)famous changing of
data types; if your pipeline was built around Excel, you actually need to
consistently treat the data as Excel would, whether working interactively in
Excel or programmatically in R. There's no way of doing this natively in
R (or any other language); convert_to_xlsx()
creates and runs a
temporary VBA script that interfaces with Excel programmatically.
If you're starting a data pipeline from scratch, please don't use this function. Just avoid Excel.
xlsx_file
, as a tidy path (invisibly)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.