The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



CheckDichotomousColumn


Unit:SDL_datatable
Class: TDataTable
Declaration: function CheckDichotomousColumn (col: integer; var v1, v2: double): boolean;

The function CheckDichotomousColumn checks whether the data in column col are dichotomous. If so, the function returns TRUE and the two dichotomous values in the variable parameters v1 and v2. v1 and v2 are sorted, v1 is always the smaller value, v2 the larger one. If the function returns FALSE the values in v1 and v2 may be undefined.

Please note that in the case of a constant value in all cells of column col the function returns a FALSE value.

Hint: This function works independent of the level of measurement assigned to the column.



Last Update: 2020-Apr-14