PRTools contents

PRTools manual

misval

MISVAL

Fix the missing values in a dataset

     B = MISVAL(A,VAL)
     B = A*MISVAL([],VAL)

Input
 A Dataset, containing NaNs (missing values)
 VAL String with substitution option  or value used for substitution
      B    Dataset with NaNs substituted

Description

The following values for VAL are possible
'remove' remove objects (rows) that contain missing values (default)  'f-remove' remove features (columns) that contain missing values  'mean' fill the entries with the mean of their features  'c-mean' fill the entries with the class mean of their features  fill the entries with a fixed constant

See also

datasets,

PRTools contents

PRTools manual