CsvRow
CSV row
Operations
Append
Appends value to the end of the row
method : public : Append(value:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| value | String | to append |
Average
Calculates the row average
method : public : Average() ~ FloatReturn
| Type | Description |
|---|---|
| Float | row average |
Average
Calculates the row average
method : public : Average(end:Int) ~ FloatParameters
| 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) ~ FloatParameters
| 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) ~ StringParameters
| Name | Type | Description |
|---|---|---|
| index | Int | index |
Return
| Type | Description |
|---|---|
| String | row value |
Get
Gets the indexed row value
method : public : Get(name:String) ~ StringParameters
| Name | Type | Description |
|---|---|---|
| name | String | name |
Return
| Type | Description |
|---|---|
| String | row value |
Median
Calculates the row median
method : public : Median() ~ FloatReturn
| 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) ~ BoolParameters
| 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) ~ BoolParameters
| 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) ~ FloatParameters
| 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) ~ FloatParameters
| 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() ~ StringReturn
| Type | Description |
|---|---|
| String | JSON object string |
ToString
Formats the row into a string
method : public : ToString() ~ StringReturn
| Type | Description |
|---|---|
| String | string representation of the row |