[R] how can I look at .Internal(model.matrix(t, data))?

Peter Ehlers ehlers at ucalgary.ca
Tue Mar 9 09:22:40 CET 2010


I imagine it's in

  https://svn.r-project.org/R/trunk/src/main/model.c

  -Peter Ehlers

On 2010-03-05 12:43, Werner W. wrote:
> Hi,
>
> I would like to see how model.matrix expands factor column to a set of dummy columns. I think that is done int .Internal(model.matrix(t, data)) which is called from model.matrix.default. But I have not idea how I can look at this function. How can I get to such internal functions?
>
> Thanks so much!
>    Werner
>
>
> ____________________________________________
> einen herausragenden Schutz gegen Massenmails.
> http://mail.yahoo.com
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>

-- 
Peter Ehlers
University of Calgary



More information about the R-help mailing list