Re: [R] Dealing with data frame column names beginning with a numeric

2007-04-17 Thread Patrick Connolly
On Mon, 16-Apr-2007 at 10:12PM +0100, Prof Brian Ripley wrote: |> On Mon, 16 Apr 2007, Duncan Murdoch wrote: |> >The name change happens in the conversion to a dataframe, so why not |> >change the name afterwards? That is: |> > |> >df <- data.frame(mat) |> >names(df)[3] <- "5T" |> >boxplot(df, m

Re: [R] Dealing with data frame column names beginning with a numeric

2007-04-16 Thread Prof Brian Ripley
On Mon, 16 Apr 2007, Duncan Murdoch wrote: > On 4/16/2007 4:22 PM, Patrick Connolly wrote: >> I wish to set up a simple function using boxplot so that it will be >> available to someone using R for Windows. (I myself use Linux.) >> >> The way the data is organised makes it convenient to use the b

Re: [R] Dealing with data frame column names beginning with a numeric

2007-04-16 Thread Patrick Connolly
On Mon, 16-Apr-2007 at 04:29PM -0400, Gabor Grothendieck wrote: |> Try this: |> |> boxplot(data.frame(mat), names = colnames(mat)) |> Great! Now why didn't I think of that? -- ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. ___Patrick Connolly {~.

Re: [R] Dealing with data frame column names beginning with a numeric

2007-04-16 Thread Duncan Murdoch
On 4/16/2007 4:22 PM, Patrick Connolly wrote: > I wish to set up a simple function using boxplot so that it will be > available to someone using R for Windows. (I myself use Linux.) > > The way the data is organised makes it convenient to use the boxplot > function in a manner similar to this exa

Re: [R] Dealing with data frame column names beginning with a numeric

2007-04-16 Thread Gabor Grothendieck
Try this: boxplot(data.frame(mat), names = colnames(mat)) On 4/16/07, Patrick Connolly <[EMAIL PROTECTED]> wrote: > I wish to set up a simple function using boxplot so that it will be > available to someone using R for Windows. (I myself use Linux.) > > The way the data is organised makes it con

[R] Dealing with data frame column names beginning with a numeric

2007-04-16 Thread Patrick Connolly
I wish to set up a simple function using boxplot so that it will be available to someone using R for Windows. (I myself use Linux.) The way the data is organised makes it convenient to use the boxplot function in a manner similar to this example given in the help. > mat <- cbind(Uni05 = (1