Use model.matrix() on a lm object

USAGE:

model.matrix.lm(object, ...) 

This is a method for the function model.matrix() for objects inheriting from class lm. See model.matrix or model.matrix.default for the general behavior of this function and for the interpretation of object.