clean2excel: Clean and export price and conversion factor to Excel

Description Usage Arguments

View source: R/expertexcel.R

Description

Save price, conversion factor and flow choice in a separate table for further analysis. Use the argument file to specify where the Excel file will be located.

Usage

1
2
3
4
5
6
7
clean2excel(dtf, file, path = "data-raw/excel", returnresults = FALSE,
  ...)

cleandb2excel(productcode, file = paste0(productcode, ".xlsx"),
  tableread = "raw_flow_yearly", ...)

cleanrdata2excel(rawfilename, ...)

Arguments

dtf

data frame

file

a character string naming an Excel file, should end by ".xlsx"

path

a character string specifying where the excel file will be saved

returnresults

TRUE if the list of results should be returned usefull for the function cleanrdata2excel.

...

further arguments passed to clean() without extensions

productcode

code of a product

tableread

names of the database table to read

rawfile

name of a .RData file containing raw trade flows


paul4forest/tradeflows documentation built on Oct. 8, 2019, 10:35 a.m.