Skip to content
Prev 49168 / 63424 Next

model.matrix metadata

Patrick O'Reilly <patrick.a.oreilly <at> gmail.com> writes:
Why don't you just retain the terms.object?

i.e

my.terms <- terms( my.formula, data=my.data.frame )
my.model.matrix <- model.matrix( my.terms, data= my.data.frame )

attributes(my.terms)


See ?terms, ?terms.object, ?model.frame (which contains a terms.object)


HTH,

Chuck