table

package
v0.0.0-...-2f13916 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Addslice

func Addslice(two *[][]string, one []string)

Types

type Cn2func

type Cn2func func(float64, float64) bool

type Cnfunc

type Cnfunc func(float64) bool

type Gl2func

type Gl2func func(float64, float64) float64

type Glfunc

type Glfunc func(float64) float64

type Table

type Table struct {
	Name    string
	Columns []string
	Rows    [][]string
}

Table is a struct containing the name, columns and rows of a table.

func (*Table) Calculation2DInt

func (t *Table) Calculation2DInt(column1, column2 string, function Gl2func, decimals int)

func (*Table) CalculationInt

func (t *Table) CalculationInt(columnname string, function Glfunc, decimals int)

func (Table) Conditional2DInt

func (t Table) Conditional2DInt(column1, column2 string, function Cn2func, decimals int) [][]string

func (Table) Conditional2DText

func (t Table) Conditional2DText(column1, column2 string, function Txt2func) [][]string

func (Table) ConditionalInt

func (t Table) ConditionalInt(columnname string, function Cnfunc, decimals int) [][]string

func (Table) Count

func (t Table) Count(column string) [][]string

func (Table) DateToDays

func (t Table) DateToDays(column, parse string, delta float64)

func (Table) Describe

func (t Table) Describe(column string)

func (Table) Focusdata

func (t Table) Focusdata(column1, column2 string)

func (Table) Grab

func (t Table) Grab() [][]string

func (Table) Grabdata

func (t Table) Grabdata(identifiercolumn string) (names []string, data [][]float64)

func (Table) Grabdatatest

func (t Table) Grabdatatest() (data [][]float64)

func (Table) Join

func (t Table) Join(t2 Table, tcolumn, t2column string) [][]string

func (*Table) Normalize

func (t *Table) Normalize()

func (Table) Order

func (t Table) Order(column string, order bool)

func (Table) Plot

func (t Table) Plot(column string)

func (Table) Regex

func (t Table) Regex(column, regexquery string, boolean bool) [][]string

func (*Table) RegexReplace

func (t *Table) RegexReplace(column, regexquery, oldstring, newstring string)

func (Table) Row

func (t Table) Row(column string, rownumber int) [][]string

func (Table) Sum

func (t Table) Sum(column string) [][]string

func (*Table) Unpivot

func (t *Table) Unpivot(maincolumn string) [][]string

type Txt2func

type Txt2func func(string, string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL