savedtf2excel: Save a data frame to the Excel format, with column names

Description Usage Arguments

View source: R/save.R

Description

This function is not needed use xlsx::write.xlsx() directly But developing the function below might be usefull

Usage

1
savedtf2excel(dtf, filename, path = "data-raw/")

Arguments

dtf

data frame

filename

name of the excel file

path

folder where the file will be saved

Todo: could use deparse(substitute(dtf)) to create a filename from the objects name this might not be needed, as the ?xlsx explains write.xlsx(USArrests, file="file.xlsx")


EuropeanForestInstitute/tradeflows documentation built on Oct. 7, 2019, 10:57 a.m.