Exports to an Excel file
expbd2xls(bd,output,transpose,names,sheetname)
* bd = a string, the name of a database or a string vector, the names of variables loaded in the environment
* output = the excel file where to save the data
* sep = decimal separator (optional: if not given then sep= '.')
* transpose = a boolean indicating whether the data must be transposed or not (default = %f)
* names = (k x 1) string vectors, the names that the variables will have in the csv files (optional; default: the names of the data in Scilab)
nothing
global GROCERDIR; // export data form the Hendry and Ericsson databse in the sheet data of // file bdhenderic.xls in the floder tmp of GROCER distribution expbd2xls(GROCERDIR+'\data\bdhenderic.dat',GROCERDIR+'\tmp\bdhenderic.xls','data') load(GROCERDIR+'\data\bdhenderic.dat') expbd2xls(['lm1','lp','ly','rnet','const','trend'],GROCERDIR+'\tmp\bdhenderic.xls','data2',%t,['log(m1)','log(p)','log(y)','rnet','constant','trend']) | ![]() | ![]() |