Re: [R] Measurement units inside a data frame

2008-02-07 Thread Tribo Laboy
On Thu, Feb 7, 2008 at 7:57 PM, Gavin Simpson <[EMAIL PROTECTED]> wrote: > > On Thu, 2008-02-07 at 19:32 +0900, Tribo Laboy wrote: > > Hello, > > > > I was wondering if there was an easy way to put information about the > > measurement units used for each column of a data frame ... > > > > Th

Re: [R] Measurement units inside a data frame

2008-02-07 Thread Tribo Laboy
Thanks Gabor, In fact I am currently using the first option in your nicely summarized reply. But many of the automatic plotting functions use the column labels for labeling the plots and sometimes it is just a bit inconvenient. Your second option is what Gavin also suggested and I guess I will go

Re: [R] Measurement units inside a data frame

2008-02-07 Thread Gabor Grothendieck
Here are 3 possibilities where the examples use the builtin data set BOD: #1. Use column headings > names(BOD) <- paste(names(BOD), c("days", "mg/l"), sep = "_") > BOD Time_days demand_mg/l 1 1 8.3 2 210.3 3 319.0 4 416.0 5

Re: [R] Measurement units inside a data frame

2008-02-07 Thread Gavin Simpson
hits=-2.6 tests=BAYES_00 X-USF-Spam-Flag: NO On Thu, 2008-02-07 at 19:32 +0900, Tribo Laboy wrote: > Hello, > > I was wondering if there was an easy way to put information about the > measurement units used for each column of a data frame ... > > Thanks for any pointers, > > TL You could add a

[R] Measurement units inside a data frame

2008-02-07 Thread Tribo Laboy
Hello, I was wondering if there was an easy way to put information about the measurement units used for each column of a data frame ... Thanks for any pointers, TL __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEAS