<< centering Data management csv2div2 >>

fact >> Data management > csv2div

csv2div

loads a csv file to the Div format

Calling sequence

x_dvi = csv2div('mycsvdata',(field),(decimal));

Arguments

mycsvdata:

the name of a csv file (a string)

the csv file must respect the following format:

the first line of mycsvdata.csv contains the labels of the columns

the first column of mycsvdata.csv contains the labels of the lines

note: the value in first line and first column is dropped

(field):

the field separator (optionnal)

by default: semi-column ';'

(decimal):

the decimal separator (optionnal)

by default: comma ',' or dot '.'

x_div:

a Div structure

x_div.d contains the data matrix

x_div.i contains the labels of the observations (lines)

x_div.v contains the labels of the variables (columns)

Examples

[x] = csv2div('mycsvdata');
[x] = csv2div('mycsvdata',',','.');

Authors


Report an issue
<< centering Data management csv2div2 >>