All Bundles

CsvRow

CSV row

Operations

New

Constructor

New(table:CsvTable, id:Int, read_only:Bool, columns:CompareVector)
Parameters
NameTypeDescription
tableCsvTabletable that has row
idIntrow id
read_onlyBooltrue if readonly, false otherwise
columnsCompareVector<String>column values

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

Calculates the row average

method : public : Average(end:Int) ~ Float
Parameters
NameTypeDescription
endIntending column

Return
TypeDescription
Floatrow 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

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

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

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

Calculates the row sum

method : public : Sum(end:Int) ~ Float
Parameters
NameTypeDescription
endIntending column

Return
TypeDescription
Floatrow sum

Calculates the row sum

method : public : Sum(start:Int, end:Int) ~ Float
Parameters
NameTypeDescription
startIntstarting column
endIntending column

Return
TypeDescription
Floatrow sum

ToString

Formats the row into a string

method : public : ToString() ~ String
Return
TypeDescription
Stringstring representation of the row