Class DataTableTools
Inheritance
DataTableTools
Assembly: TowseyLibrary.dll
public static class DataTableTools
Methods
|
Improve this Doc
View Source
Declaration
public static void AddColumnOfDoubles2Table(DataTable dt, string columnName, double[] array)
Parameters
|
Improve this Doc
View Source
Declaration
public static void ChangeColumnName(DataTable dt, string oldName, string newName)
Parameters
|
Improve this Doc
View Source
Declaration
public static void ChangeColumnType(DataTable dt, string colName, Type newType)
Parameters
|
Improve this Doc
View Source
Declaration
public static double[] Column2ArrayOfDouble(DataTable dt, string colName)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static List<int> Column2ListOfInt(DataTable dt, string colName)
Parameters
Returns
|
Improve this Doc
View Source
setup skeleton of new table with same headers and column types as passed table.
Declaration
public static DataTable CreateTable(DataTable dt)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static DataTable CreateTable(string[] headers, string[] types)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static DataTable CreateTable(string[] headers, Type[] types)
Parameters
Type |
Name |
Description |
String[] |
headers |
|
Type[] |
types |
|
Returns
|
Improve this Doc
View Source
Declaration
public static DataTable CreateTable(string[] headers, Type[] types, List<double[]> data)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static void DeleteRows(DataTable dt, string colName, string value)
Parameters
|
Improve this Doc
View Source
Declaration
public static string[] GetColumnNames(DataTable dt)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Type GetColumnType(DataTable dt, string columnName)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static Type[] GetColumnTypes(DataTable dt)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static double GetDoubleFromDataRow(DataRow row, int location)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static List<double[]> ListOfColumnValues(DataTable dt)
Parameters
Returns
|
Improve this Doc
View Source
normalises the column values in a data table to values in [0,1].
Declaration
public static List<double[]> NormaliseColumnValues(List<double[]> columns, double[] minValue, double[] maxValue)
Parameters
Returns
|
Improve this Doc
View Source
normalises the column values in a data table to values in [0,1].
Declaration
public static DataTable NormaliseColumnValues(DataTable dt)
Parameters
Returns
|
Improve this Doc
View Source
normalises the column values in a data table to values in [0,1].
Declaration
public static DataTable NormaliseColumnValues(DataTable dt, double[] minValue, double[] maxValue)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static void RemoveTableColumns(DataTable dt, bool[] retainColumn)
Parameters
|
Improve this Doc
View Source
sorts all the rows in a table without filtering
The empty string is the filtering term.
Declaration
public static DataRow[] SortRows(DataTable dt, string sortString)
Parameters
Returns
|
Improve this Doc
View Source
sorts all the rows in a table without filtering
The empty string is the filtering term.
Declaration
public static DataTable SortTable(DataTable dt, string sortString)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static void WriteTable2Console(DataTable dt)
Parameters
|
Improve this Doc
View Source
Declaration
public static void WriteTable2ConsoleInLongLayout(DataTable dt)
Parameters