Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

scales
Summary

int scales(data)
SURVO_DATA *data; /* pointer to data structure */
Description

The scales function removes all variables with the scale type '-' (no scale) from the list data->v of active variables. data must be opened by data_open or data_open2.

scales is usually called after mask in statistical SURVO 84C modules to remove fields without scale from the analysis irrespective of the user's selection. scales thus updates data->m_act and selection vector data->v.

Return Value

There is no return value.

See Also

mask

Example

int i;
SURVO_DATA dat;

i=data_open("TEST",&dat);
if (i<0) return;
mask(&dat);   /* select variables according to MASK */
scales(&dat); /* remove variables without scale */


Front page of Survo C libraries