[R] model.matrix and missing values

Jarrod Hadfield jhadfiel at staffmail.ed.ac.uk
Sun Dec 28 14:13:16 CET 2008


Hi,

Does anyone know an easy way of retaining rows in a model.matrix where  
missing values are present in the predictors.  Ideally I'd be able to  
retain these rows as zeros.

Thanks,

Jarrod



-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



More information about the R-help mailing list