SetString sets the string value of cell at given column (by name), row index for columns that have 1-dimensional tensors. Returns true if set.
(column string, row int, val string)
| 613 | // SetString sets the string value of cell at given column (by name), row index |
| 614 | // for columns that have 1-dimensional tensors. Returns true if set. |
| 615 | func (dt *Table) SetString(column string, row int, val string) bool { |
| 616 | if !dt.IsValidRow(row) { |
| 617 | return false |
| 618 | } |
| 619 | ct := dt.ColumnByName(column) |
| 620 | if ct == nil { |
| 621 | return false |
| 622 | } |
| 623 | if ct.NumDims() != 1 { |
| 624 | return false |
| 625 | } |
| 626 | ct.SetString1D(row, val) |
| 627 | return true |
| 628 | } |
| 629 | |
| 630 | // SetTensorIndex sets the tensor value of cell at given column, row index |
| 631 | // for columns that have n-dimensional tensors. Returns true if set. |