Project

General

Profile

OpenSpace3D libs
OpenSpace 3D libraries for plugITs and OS3D developer
Loading...
Searching...
No Matches

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.
 

Detailed Description

CSV tools

Function Documentation

◆ formatCSV()

formatCSV ( sep  ,
ltitles  ,
llinevalues   
)

Write CSV format in string.

Prototype: fun [S [S r1] [[S r1] r1]] S

Parameters
S: separator
[Sr1] : list of column titles
[[Sr1] r1] : list of lines values
Returns
S: formated string

◆ writeCSV()

writeCSV ( filepath  ,
sep  ,
ltitles  ,
llinevalues   
)

Write CSV format in file.

Prototype: fun [S [S r1] [[S r1] r1]] S

Parameters
S: filepath
S: separator
[Sr1] : list of column titles
[[Sr1] r1] : list of lines values
Returns
0

◆ readCSVdataWithTitle()

readCSVdataWithTitle ( data  ,
sep   
)

read CSV data with titles

Prototype: fun [S S] [[S r1] [[S r1] r1]]

Parameters
S: data
S: separator
Returns
[[S r1] [[S r1] r1]] : list of title and list of values

◆ readCSVdata()

readCSVdata ( data  ,
sep   
)

read CSV data

Prototype: fun [S S] [[S r1] r1]

Parameters
S: data
S: separator
Returns
[[S r1] r1] : list of values

◆ readCSVdataToTab()

readCSVdataToTab ( data  ,
sep   
)

CSV data to array.

Prototype: fun [S S] [tab tab S]

Parameters
S: data
S: separator
Returns
[tab tab S] : array with datas

◆ readCSVdataToTabSized()

readCSVdataToTabSized ( data  ,
sep  ,
rows  ,
cols   
)

CSV data to array sized.

Prototype: fun [S S I I] [tab tab S]

Parameters
S: data
S: separator
I: Nb rows in tab
I: Nb cols in tab
Returns
[tab tab S] : array with datas

◆ readCSVTabToData()

readCSVTabToData ( tdata  ,
rows  ,
cols   
)

CSV tab to list.

Prototype: fun [[tab tab S] I I] [[S r1] r1]

Parameters
[tabtab S] : data in tab
I: Nb rows
I: Nb cols
Returns
[[S r1] r1] : list of values

◆ readCSVdataToTabRow()

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]

Parameters
S: data
S: separator
I: row id
[tabtab S] : input tab
I: Nb rows in tab
I: Nb cols in tab
Returns
[tab tab S] : array with datas

◆ readCSVdataToTabColumn()

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]

Parameters
S: data
S: separator
I: column id
[tabtab S] : input tab
I: Nb rows in tab
I: Nb cols in tab
Returns
[tab tab S] : array with datas