MCPcopy Create free account
hub / github.com/cogentcore/core / RowsByString

Method RowsByString

tensor/table/table.go:430–436  ·  view source on GitHub ↗

RowsByString returns the list of rows that have given string value in given column name. returns nil if name invalid -- see also Try. if contains, only checks if row contains string; if ignoreCase, ignores case. Use named args for greater clarity.

(column string, str string, contains, ignoreCase bool)

Source from the content-addressed store, hash-verified

428// if contains, only checks if row contains string; if ignoreCase, ignores case.
429// Use named args for greater clarity.
430func (dt *Table) RowsByString(column string, str string, contains, ignoreCase bool) []int {
431 ci := dt.ColumnIndex(column)
432 if ci < 0 {
433 return nil
434 }
435 return dt.RowsByStringIndex(ci, str, contains, ignoreCase)
436}
437
438//////////////////////////////////////////////////////////////////////////////////////
439// Cell convenience access methods

Callers 5

TestGaussianGenFunction · 0.45
TestBinomialGenFunction · 0.45
TestPoissonGenFunction · 0.45
TestGammaGenFunction · 0.45
TestBetaGenFunction · 0.45

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls 2

ColumnIndexMethod · 0.95
RowsByStringIndexMethod · 0.95

Tested by 5

TestGaussianGenFunction · 0.36
TestBinomialGenFunction · 0.36
TestPoissonGenFunction · 0.36
TestGammaGenFunction · 0.36
TestBetaGenFunction · 0.36