AW: [R] boxplot a list of objects

From: Unternährer Thomas, uth <uth_at_zhwin.ch>
Date: Wed 07 Jul 2004 - 18:48:54 EST

One possibility ist

boxplot(sapply(ListOfNames, get, env = .GlobalEnv))

Hope that this helps

Thomas

-----Ursprüngliche Nachricht-----
Von: Lefebure Tristan [mailto:Tristan.Lefebure@univ-lyon1.fr] Gesendet: Mittwoch, 7. Juli 2004 10:34
An: r-help@stat.math.ethz.ch
Betreff: [R] boxplot a list of objects

Hi list,

#Imagine we have vectors of different length (in practice 100 vectors):

a<-c(1:10)
b<-c(1:20)
c<-c(1:30)

#then we got a list of the names of those objects:

list<-c("a","b","c")

#I don't find how to boxplot them using a less stupid way than :

boxplot(get(list[1]),get(list[2]),get(list[3]))

Thanks for any advice !

-- 
------------------------------------------------------------
Tristan LEFEBURE
Laboratoire d'écologie des hydrosystèmes fluviaux (UMR 5023) Université Lyon I - Campus de la Doua 6 rue Dubois 69622 Villeurbanne - France

Phone: (33) (0)4 72 43 29 45
Fax: (33) (0)4 72 43 15 23

______________________________________________
R-help_at_stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Jul 07 18:52:56 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:34:50 EST