Home

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
columnsCompareVectorcolumn values

Average

Calculates the row average

method : public : Average() ~ Float
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(value:String, index:Int) ~ Bool
Parameters
NameTypeDescription
valueStringvalue to set
indexIntindex

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

ToString

Formats the row into a string

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