Re: [R] Boxplot of multiple vectors with different lengths

2011-12-13 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Trevor Carey- > Smith > Sent: Monday, December 12, 2011 4:22 PM > To: r-help@r-project.org > Subject: Re: [R] Boxplot of multiple vectors with different

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-13 Thread Ryan Utz
> Spotfire, TIBCO Software > wdunlap tibco.com > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Ryan Utz > > Sent: Monday, December 12, 2011 3:15 PM > > To: r-help@r-project.org > > S

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Trevor Carey-Smith
On 12/13/2011 12:14 PM, Ryan Utz wrote: My vectors names are neatly stored in a character vector of their own. This happens based on how they were imported. So, say I have vectors a, b and c, all with numeric-only contents. Then I have another vector, say z, that looks like this: z<-c("a","b","c

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread William Dunlap
["b"]], etc. instead. You may want to use a shorter name than dataList. Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Ryan Utz > Sent: Monday, Decembe

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Bert Gunter
Thomas: I stand corrected. Thank you. -- Bert On Mon, Dec 12, 2011 at 2:21 PM, Thomas Adams wrote: > Bert, > > I may be mistaken, but I thought Ryan wrote "write code that automatically > imports data from different files (with different lengths-just one > variable)", so, I was referring to doi

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Peter Ehlers
On 2011-12-12 15:14, Ryan Utz wrote: Thanks for the help, everyone. However, no solution yet... My vectors names are neatly stored in a character vector of their own. This happens based on how they were imported. So, say I have vectors a, b and c, all with numeric-only contents. Then I have anot

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Ryan Utz
Thanks for the help, everyone. However, no solution yet... My vectors names are neatly stored in a character vector of their own. This happens based on how they were imported. So, say I have vectors a, b and c, all with numeric-only contents. Then I have another vector, say z, that looks like this

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Vining, Kelly
Ryan, Do you necessarily have to use "list"? Have you tried the usecols=TRUE option in boxplot? Cheers, --Kelly V. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Ryan Utz Sent: Monday, December 12, 2011 1:24 PM To: r-help@r-proje

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Thomas Adams
Bert, I may be mistaken, but I thought Ryan wrote "write code that automatically *imports data* from different files (with different lengths-just one variable)", so, I was referring to doing something with the data before it gets into R. I understand that one should not need to write out data and

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Bert Gunter
Sorry -- previous versiuon prematurely sent. Full version is: Yikes!  You should never have to do this sort of thing (writing stuff out to files, etc.) What is wanted, I believe, is ?do.call as in do.call(boxplot, z) where z is list(a,b,c)   as Sarah described. However, I think you might

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Thomas Adams
Ryan, I think you could do what you want by having the vector data written to separate files; then create a file containing the individual file names. In R, read the file containing the list of file names and loop through this reading in the individual vector files. Maybe this is an inelegant, bru

Re: [R] Boxplot of multiple vectors with different lengths

2011-12-12 Thread Sarah Goslee
Hi, On Mon, Dec 12, 2011 at 4:24 PM, Ryan Utz wrote: > Hello, > > I'm attempting to write a code that automatically imports data from > different files (with different lengths-just one variable) and makes tidy > box plots for comparison. I can successfully import the data and create a > list of t