[R] silly, extracting the value of "C" from the results of somers2

From: ahimsa campos arceiz <ahimsa_at_camposarceiz.com>
Date: Wed 04 Jan 2006 - 17:10:35 EST


Sorry I have a very simple question:

I used somers2 function from Design package:

> z<- somers2(x,y, weights=w)

results are:

>z

 C Dxy n Missing
 0.88 0.76 500 0.00

Now I want to call only the value of C to be used in further analyses, but I fail to do it. I have tried:

> z$C

NULL
> z[,C]

Error in z[,C]: incorrect number of dimensions

and some other silly things. If I do
>list(z)

[[1]]
  C Dxy n Missing
 0.88 0.76 500 0.00

Can somebody tell me how can I obtain just the value of c?

Thank you useRs,

very gratefull

Ahimsa

-- 
Ahimsa Campos Arceiz
The University Museum,
The University of Tokyo
Hongo 7-3-1, Bunkyo-ku,
Tokyo 113-0033
phone +81-(0)3-5841-2824

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Jan 04 17:15:10 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:46 EST