OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
|
Functions | |
formatCSV (sep, ltitles, llinevalues) | |
Write CSV format in string. | |
writeCSV (filepath, sep, ltitles, llinevalues) | |
Write CSV format in file. | |
readCSVdataWithTitle (data, sep) | |
read CSV data with titles | |
readCSVdata (data, sep) | |
read CSV data | |
readCSVdataToTab (data, sep) | |
CSV data to array. | |
readCSVdataToTabSized (data, sep, rows, cols) | |
CSV data to array sized. | |
readCSVTabToData (tdata, rows, cols) | |
CSV tab to list. | |
readCSVdataToTabRow (data, sep, rowid, srctab, rows, cols) | |
CSV data to a single array row sized. | |
readCSVdataToTabColumn (data, sep, colid, srctab, rows, cols) | |
CSV data to a single array column sized. | |
CSV tools
formatCSV | ( | sep | , |
ltitles | , | ||
llinevalues | |||
) |
Write CSV format in string.
Prototype: fun [S [S r1] [[S r1] r1]] S
S | : separator |
[S | r1] : list of column titles |
[[S | r1] r1] : list of lines values |
writeCSV | ( | filepath | , |
sep | , | ||
ltitles | , | ||
llinevalues | |||
) |
Write CSV format in file.
Prototype: fun [S [S r1] [[S r1] r1]] S
S | : filepath |
S | : separator |
[S | r1] : list of column titles |
[[S | r1] r1] : list of lines values |
readCSVdataWithTitle | ( | data | , |
sep | |||
) |
read CSV data with titles
Prototype: fun [S S] [[S r1] [[S r1] r1]]
S | : data |
S | : separator |
readCSVdata | ( | data | , |
sep | |||
) |
read CSV data
Prototype: fun [S S] [[S r1] r1]
S | : data |
S | : separator |
readCSVdataToTab | ( | data | , |
sep | |||
) |
CSV data to array.
Prototype: fun [S S] [tab tab S]
S | : data |
S | : separator |
readCSVdataToTabSized | ( | data | , |
sep | , | ||
rows | , | ||
cols | |||
) |
CSV data to array sized.
Prototype: fun [S S I I] [tab tab S]
S | : data |
S | : separator |
I | : Nb rows in tab |
I | : Nb cols in tab |
readCSVTabToData | ( | tdata | , |
rows | , | ||
cols | |||
) |
CSV tab to list.
Prototype: fun [[tab tab S] I I] [[S r1] r1]
[tab | tab S] : data in tab |
I | : Nb rows |
I | : Nb cols |
readCSVdataToTabRow | ( | data | , |
sep | , | ||
rowid | , | ||
srctab | , | ||
rows | , | ||
cols | |||
) |
CSV data to a single array row sized.
Prototype: fun [S S I [tab tab S] I I] [tab tab S]
S | : data |
S | : separator |
I | : row id |
[tab | tab S] : input tab |
I | : Nb rows in tab |
I | : Nb cols in tab |
readCSVdataToTabColumn | ( | data | , |
sep | , | ||
colid | , | ||
srctab | , | ||
rows | , | ||
cols | |||
) |
CSV data to a single array column sized.
Prototype: fun [S S I [tab tab S] I I] [tab tab S]
S | : data |
S | : separator |
I | : column id |
[tab | tab S] : input tab |
I | : Nb rows in tab |
I | : Nb cols in tab |