[R] attr function

About this list Date view Thread view Subject view Author view Attachment view

From: Shawn Way (sway@tanox.com)
Date: Thu 06 Feb 2003 - 00:35:06 EST


Message-id: <2F3262756375D411B0CC00B0D049775DAFB2A4@exchange.tanox.com>


I've been trying unsuccessfully to extract the term labels from a model
frame using the attr function.

The code is as follows

a <- data.frame(col1=c(1,2,3,2,1,3),col2=c(2,4,7,6,4,3))
b <- model.frame(col2~col1,data=a)

Now the term.labels attribute is col1, but how do I get this from the b data
frame attributes?

Thanks in advance...

Shawn Way

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:21 EST