Lauri Nikkinen wrote:
> Hi,
>
> How can I extract part of an array? I would like to extract table
> Supported from this array. If this is not possible, how do I convert
> array to list? I'm sorry this is not an reproducible example.
>
>   
>> spl <- tapply(temp$var1, list(temp$var2, temp$var3, temp$var3), mean)
>> spl
>>     
> , , Supported
>
>                07       08
> A        68.38710 71.48387
> B        21.67742 20.83871
> C        55.74194 61.12903
> AL L     26.19816 27.39631
>
> , , Not_supported
>
>          07       08
> A        NA 82.38710
> B        NA 24.00000
> C        NA 68.77419
> ALL      NA 29.97984
>
>   
How about spl[,,"Supported"]?

-p

-- 
   O__  ---- Peter Dalgaard             Ă˜ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])                  FAX: (+45) 35327907

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to