CsvRow
CSV row
Operations
Append
Appends value to the end of the row
method : public : Append(value:String) ~ Nil
Parameters
Name | Type | Description |
---|---|---|
value | String | to append |
Average
Calculates the row average
method : public : Average() ~ Float
Return
Type | Description |
---|---|
Float | row average |
Average
Calculates the row average
method : public : Average(end:Int) ~ Float
Parameters
Name | Type | Description |
---|---|---|
end | Int | ending column |
Return
Type | Description |
---|---|
Float | row average |
Average
Calculates the row average
method : public : Average(start:Int, end:Int) ~ Float
Parameters
Name | Type | Description |
---|---|---|
start | Int | starting column |
end | Int | ending column |
Return
Type | Description |
---|---|
Float | row average |
Get
Gets the indexed row value
method : public : Get(index:Int) ~ String
Parameters
Name | Type | Description |
---|---|---|
index | Int | index |
Return
Type | Description |
---|---|
String | row value |
Get
Gets the indexed row value
method : public : Get(name:String) ~ String
Parameters
Name | Type | Description |
---|---|---|
name | String | name |
Return
Type | Description |
---|---|
String | row value |
Median
Calculates the row median
method : public : Median() ~ Float
Return
Type | Description |
---|---|
Float | row median |
New
Constructor
New(table:CsvTable, id:Int, read_only:Bool, columns:CompareVector<String>)
Parameters
Name | Type | Description |
---|---|---|
table | CsvTable | table that has row |
id | Int | row id |
read_only | Bool | true if readonly, false otherwise |
columns | CompareVector<String> | column values |
Set
Sets the indexed row value
method : public : Set(index:Int, value:String) ~ Bool
Parameters
Name | Type | Description |
---|---|---|
index | Int | index |
value | String | value to set |
Return
Type | Description |
---|---|
Bool | true of value was set, false otherwise |
Set
Sets the named row value
method : public : Set(name:String, value:String) ~ Bool
Parameters
Name | Type | Description |
---|---|---|
name | String | name |
value | String | value |
Return
Type | Description |
---|---|
Bool | true of value was set, false otherwise |
Sum
Calculates the row sum
method : public : Sum(end:Int) ~ Float
Parameters
Name | Type | Description |
---|---|---|
end | Int | ending column |
Return
Type | Description |
---|---|
Float | row sum |
Sum
Calculates the row sum
method : public : Sum(start:Int, end:Int) ~ Float
Parameters
Name | Type | Description |
---|---|---|
start | Int | starting column |
end | Int | ending column |
Return
Type | Description |
---|---|
Float | row sum |
ToJson
Formats the row into a JSON object string
method : public : ToJson() ~ String
Return
Type | Description |
---|---|
String | JSON object string |
ToString
Formats the row into a string
method : public : ToString() ~ String
Return
Type | Description |
---|---|
String | string representation of the row |