Skip to content
Prev 17312 / 398513 Next

Pointer to covariates?

Here is another idea, but the overhead might be just as great.

dat_data.frame(y=1:3,x1=c(1,0,1),x2=c(0,1,0))
dat.unique_unique(paste(as.character(dat$x1),as.character(dat$x2)))
dat.keys_match(paste(as.character(dat$x1),as.character(dat$x2)),dat.unique)
y x1 x2
1 1  1  0
2 2  0  1
3 3  1  0
[1] "1 0" "0 1"
[1] 1 2 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anne E. York
National Marine Mammal Laboratory
Seattle WA 98115-0070  USA
e-mail: anne.york at noaa.gov
Voice: +1 206-526-4039
Fax: +1 206-526-6615
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On Thu, 21 Feb 2002, [iso-8859-1] Göran Broström wrote:

            
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._