Parse a text-file and convert it to an array of XY points
(string)
csv or tsv strings
(object
= {}
)
Name | Description |
---|---|
options.rescale
boolean
(default false )
|
will set the maximum value to 1 |
options.uniqueX
boolean
(default false )
|
Make the X values unique (works only with 'xxyy' format). If the X value is repeated the sum of Y is done. |
options.xColumn
number
(default 0 )
|
A number that specifies the x column |
options.yColumn
number
(default 1 )
|
A number that specifies the y column |
options.bestGuess
boolean
(default false )
|
Will try to guess which columns are the best |
options.numberColumns
number
(default Number.MAX_SAFE_INTEGER )
|
If the file has 10 columns and you specify here 2 it will reflow the file |
options.maxNumberColumns
number
(default (Math.max(xColumn,yColumn)+1) )
|
A number that specifies the maximum number of y columns |
options.minNumberColumns
number
(default (Math.min(xColumn,yColumn)+1) )
|
A number that specifies the minimum number of y columns |
options.keepInfo
boolean
(default false )
|
shoud we keep the non numeric lines. In this case the system will return an object {data, info} |