[R] List Structure and Acces to data

Bert Gunter gunter.berton at gene.com
Tue Jul 23 15:44:41 CEST 2013


Read the "Introduction to R tutorial" that is part of your R
installation. For more complete information, consult the "R Language
Definition" and ?"["    .

-- Bert

On Tue, Jul 23, 2013 at 4:22 AM, Eric TRAVAGLINI
<Eric.TRAVAGLINI at crealp.vs.ch> wrote:
> Hello,
>
> I used some other langages as Matlab and i just began with R, and i need help with data structure.
>
> Here is my code
>
> "
> fct_echant_hist <- function ( my_echant, my_vitesse, my_hist, my_summary) {
>           list (my_echant = my_echant,
>                 my_vitesse = my_vitesse,
>                 my_hist = my_hist,
>                 my_summary = my_summary)}
>
>
> my_echant_hist <- replicate(dim(pas)[1], fct_echant_hist(0L,
>                            0L,
>                            matrix(nrow=length(my_breaks),ncol=1),
>                            matrix(nrow=6,ncol=1)),
>            simplify=FALSE)
> "
> Is it possible to acces to all data of my_vitesse ?
>
>
> to acces to the my_vitesse of the first record i write
> my_echant_hist[[1]][[2]]
>
> I try something like that without succes :
> my_echant_hist[[]][[2]] or
> my_echant_hist[[:]][[2]] or
> my_echant_hist[[;]][[2]]
>
>
> Thanks a lot
>
> Eric ./.
>
> P:S Sorry for my English
>
> ______________________________________________
> 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.
>



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm



More information about the R-help mailing list