v2025.6.2
All Bundles

CsvRow

CSV row

Operations

Append

Appends value to the end of the row

method : public : Append(value:String) ~ Nil

Parameters

NameTypeDescription
valueStringto append

Average

Calculates the row average

method : public : Average() ~ Float

Return

TypeDescription
Floatrow average

Average

Calculates the row average

method : public : Average(end:Int) ~ Float

Parameters

NameTypeDescription
endIntending column

Return

TypeDescription
Floatrow average

Average

Calculates the row average

method : public : Average(start:Int, end:Int) ~ Float

Parameters

NameTypeDescription
startIntstarting column
endIntending column

Return

TypeDescription
Floatrow average

Get

Gets the indexed row value

method : public : Get(index:Int) ~ String

Parameters

NameTypeDescription
indexIntindex

Return

TypeDescription
Stringrow value

Get

Gets the indexed row value

method : public : Get(name:String) ~ String

Parameters

NameTypeDescription
nameStringname

Return

TypeDescription
Stringrow value

Id

Gets the row ID

method : public : Id() ~ Int

Return

TypeDescription
Intid

Median

Calculates the row median

method : public : Median() ~ Float

Return

TypeDescription
Floatrow median

New

Constructor

New(table:CsvTable, id:Int, read_only:Bool, columns:CompareVector<String>)

Parameters

NameTypeDescription
tableCsvTabletable that has row
idIntrow id
read_onlyBooltrue if readonly, false otherwise
columnsCompareVector<String>column values

Set

Sets the indexed row value

method : public : Set(index:Int, value:String) ~ Bool

Parameters

NameTypeDescription
indexIntindex
valueStringvalue to set

Return

TypeDescription
Booltrue of value was set, false otherwise

Set

Sets the named row value

method : public : Set(name:String, value:String) ~ Bool

Parameters

NameTypeDescription
nameStringname
valueStringvalue

Return

TypeDescription
Booltrue of value was set, false otherwise

Size

Gets the row size

method : public : Size() ~ Int

Return

TypeDescription
Introw size

Sum

Calculates the row sum

method : public : Sum() ~ Float

Return

TypeDescription
Floatrow sum

Sum

Calculates the row sum

method : public : Sum(end:Int) ~ Float

Parameters

NameTypeDescription
endIntending column

Return

TypeDescription
Floatrow sum

Sum

Calculates the row sum

method : public : Sum(start:Int, end:Int) ~ Float

Parameters

NameTypeDescription
startIntstarting column
endIntending column

Return

TypeDescription
Floatrow sum

ToJson

Formats the row into a JSON object string

method : public : ToJson() ~ String

Return

TypeDescription
StringJSON object string

ToString

Formats the row into a string

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation of the row