Re: [R] model.matrix and missing values

2008-12-28 Thread John Fox
lp-boun...@r-project.org] On > Behalf Of Jarrod Hadfield > Sent: December-28-08 8:13 AM > To: r-help@r-project.org > Subject: [R] model.matrix and missing values > > Hi, > > Does anyone know an easy way of retaining rows in a model.matrix where > missing values are present in

[R] model.matrix and missing values

2008-12-28 Thread Jarrod Hadfield
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 numb