<< elimination Basic functions expbd2exc >>

grocer >> Basic functions > expbd2csv

expbd2csv

exportation to Excel

CALLING SEQUENCE

[]=expbd2csv(bd,out,sep,transpose,sepcol,names)

PARAMETERS

Input

* bd = the name of a database, a string matrix or a list collecting the names (between quotes) of ts or vectors loaded in the environment

* out = the excel file where to save the data

* sep = decimal separator (optional: if not given then sep = '.')

* transpose = anything, but optional: if given then series are exported in rows instead of columns

* sepcol = the separartor used for colums (optional: if not given, then set to the char ' ')

* names = the names to give to the variables in the destination file if the user wants them to differ from their Scilab names (optional)

 

Output

* nothing

DESCRIPTION

Exports the content of a data base or a list of variables bd to a .csv file.

EXAMPLE

expbd2csv(GROCERDIR+'/data/bdhenderic.dat','c:/mydb/mydata.txt')
// save on a file 'c:/mydb/mydata.txt' the variables 'rnet','ly', 'lp' and 'lm1' contained in the scilab file GROCERDIR+'data/bdhenderic.dat'
 
load(GROCERDIR+'/data/bdhenderic.dat');
expbd2csv(list('rnet','ly', 'lp','lm1'), 'c:/mydb/mydata.txt')
// same thing as previous example
 
expbd2csv(GROCERDIR+'/data/bdhenderic.dat','c:/mydb/mydata.txt',',','transp')
//same thing as previous example, expect that decimal sperator is ',' instead of '.' and series are exported in columns and not in rows

AUTHOR

Eric Dubois 2002

Report an issue
<< elimination Basic functions expbd2exc >>