Re: [R] Adding labels to variables
At 04:36 PM 08/25/2004, Peter Dalgaard wrote: There's a good chance that R-2.x will introduce usePackage() and eventually remove library() as a tool for loading packages. That would be a welcome instance of consistency. -- Michael Prager, Ph.D.<[EMAIL PROTECTED]> NOAA Beaufort Laboratory Beaufort, North Carolina 28516 http://shrimp.ccfhrb.noaa.gov/~mprager/ *** __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Adding labels to variables
Peter Dalgaard biostat.ku.dk> writes: > There's a good chance that R-2.x will introduce usePackage() and > eventually remove library() as a tool for loading packages. We already have require(). __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] Adding labels to variables
Dear Spencer et al., I agree with Spencer's point: It's one thing to introduce usePackage() and encourage its use, another to remove library(). Regards, John > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Spencer Graves > Sent: Wednesday, August 25, 2004 9:03 PM > To: Peter Dalgaard > Cc: Mike Prager; [EMAIL PROTECTED] > Subject: Re: [R] Adding labels to variables > > Mon Dieu! > > I realize that I'm not part of r-devel, but for what > it's worth, I vastly prefer commands and programming styles > that produce code that can run without change in both S-Plus > and R. Any move to obsolete in R a command commonly used in > S-Plus would just make life more difficult for those of us > who have to live in both the S-Plus and R worlds. In my > judgment, where S-Plus and R currently differ, there usually > seems to be a good reason, and R is usually superior. One > example is the "log" > options in the probability functions. > > The suggestion to introduce "usePackage" and obsolete "library" > reminds me of a 6 week delay in the introduction in France of > a US automobile, because the French Royal Academy failed to > produce without a substantial delay an official French word > for a new technical term. The automobile could not be sold > without the User's Manual in French, and it could not be > printed without the approval of the French Royal Academy for > new words. > > just my 2e-12 cents. spencer graves > > Peter Dalgaard wrote: > > >"Mike Prager" <[EMAIL PROTECTED]> writes: > > > > > > > >>At 01:01 PM 08/25/2004, Raubertas, Richard wrote: > >> > >> > >>>As long as the function to load a package is called *library*, I > >>>think your campaign to change common usage is doomed to failure. > >>> > >>> > > > >Who says it's common usage? It is of course a common fallacy > to think > >that everyone else makes the same mistakes as you do... > > > > > > > >>Yes, and it's also annoyingly hard to remember -- at least > for those > >>of us who don't eat, sleep, and breathe R. > >> > >> > > > >There's a good chance that R-2.x will introduce usePackage() and > >eventually remove library() as a tool for loading packages. > > > > > > > > __ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Adding labels to variables
Mon Dieu! I realize that I'm not part of r-devel, but for what it's worth, I vastly prefer commands and programming styles that produce code that can run without change in both S-Plus and R. Any move to obsolete in R a command commonly used in S-Plus would just make life more difficult for those of us who have to live in both the S-Plus and R worlds. In my judgment, where S-Plus and R currently differ, there usually seems to be a good reason, and R is usually superior. One example is the "log" options in the probability functions. The suggestion to introduce "usePackage" and obsolete "library" reminds me of a 6 week delay in the introduction in France of a US automobile, because the French Royal Academy failed to produce without a substantial delay an official French word for a new technical term. The automobile could not be sold without the User's Manual in French, and it could not be printed without the approval of the French Royal Academy for new words. just my 2e-12 cents. spencer graves Peter Dalgaard wrote: "Mike Prager" <[EMAIL PROTECTED]> writes: At 01:01 PM 08/25/2004, Raubertas, Richard wrote: As long as the function to load a package is called *library*, I think your campaign to change common usage is doomed to failure. Who says it's common usage? It is of course a common fallacy to think that everyone else makes the same mistakes as you do... Yes, and it's also annoyingly hard to remember -- at least for those of us who don't eat, sleep, and breathe R. There's a good chance that R-2.x will introduce usePackage() and eventually remove library() as a tool for loading packages. __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] Adding labels to variables
May I also point out the following section title in the R1091 FAQ for Windows: 3.1 Can I install packages (libraries) in this version? So I think that R's own documentation supports Rich's (gentle) comment. -- Bert Gunter Genentech -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Raubertas, Richard Sent: Wednesday, August 25, 2004 3:51 PM To: 'Peter Dalgaard' Cc: '[EMAIL PROTECTED]' Subject: RE: [R] Adding labels to variables Sigh. I thought I was making a small innocuous observation, but it has apparently been taken as some kind of challenge. Martin's efforts to correct this usage seem (to me) frequent enough to justify calling the mistake 'common', but I guess others will disagree. And what grounds do you have for your implication that it is a mistake I make? Rich Raubertas __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] Adding labels to variables
Sigh. I thought I was making a small innocuous observation, but it has apparently been taken as some kind of challenge. Martin's efforts to correct this usage seem (to me) frequent enough to justify calling the mistake 'common', but I guess others will disagree. And what grounds do you have for your implication that it is a mistake I make? Rich Raubertas > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Peter Dalgaard > Sent: Wednesday, August 25, 2004 4:37 PM > To: Mike Prager > Cc: [EMAIL PROTECTED] > Subject: Re: [R] Adding labels to variables > > > "Mike Prager" <[EMAIL PROTECTED]> writes: > > > At 01:01 PM 08/25/2004, Raubertas, Richard wrote: > > >As long as the function to load a package is called *library*, > > >I think your campaign to change common usage is doomed to failure. > > Who says it's common usage? It is of course a common fallacy to think > that everyone else makes the same mistakes as you do... > > > Yes, and it's also annoyingly hard to remember -- at least for those > > of us who don't eat, sleep, and breathe R. > > There's a good chance that R-2.x will introduce usePackage() and > eventually remove library() as a tool for loading packages. > > -- >O__ Peter Dalgaard Blegdamsvej 3 > c/ /'_ --- Dept. of Biostatistics 2200 Cph. N > (*) \(*) -- University of Copenhagen Denmark Ph: > (+45) 35327918 > ~~ - ([EMAIL PROTECTED]) FAX: > (+45) 35327907 > > __ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html > > __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Adding labels to variables
"Mike Prager" <[EMAIL PROTECTED]> writes: > At 01:01 PM 08/25/2004, Raubertas, Richard wrote: > >As long as the function to load a package is called *library*, > >I think your campaign to change common usage is doomed to failure. Who says it's common usage? It is of course a common fallacy to think that everyone else makes the same mistakes as you do... > Yes, and it's also annoyingly hard to remember -- at least for those > of us who don't eat, sleep, and breathe R. There's a good chance that R-2.x will introduce usePackage() and eventually remove library() as a tool for loading packages. -- O__ Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] Adding labels to variables
At 01:01 PM 08/25/2004, Raubertas, Richard wrote: As long as the function to load a package is called *library*, I think your campaign to change common usage is doomed to failure. Yes, and it's also annoyingly hard to remember -- at least for those of us who don't eat, sleep, and breathe R. MHP -- Michael Prager, Ph.D.<[EMAIL PROTECTED]> NOAA Center for Coastal Fisheries and Habitat Research Beaufort, North Carolina 28516 http://shrimp.ccfhrb.noaa.gov/~mprager/ NOTE: Opinions expressed are personal, not official. No government endorsement of any product is expressed or implied. __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] Adding labels to variables
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Martin Maechler > Sent: Wednesday, August 25, 2004 2:46 AM > To: Austin, Matt > Cc: [EMAIL PROTECTED] > Subject: RE: [R] Adding labels to variables > > >>>>> "AustinM" == Austin, Matt <[EMAIL PROTECTED]> > >>>>> on Tue, 24 Aug 2004 22:15:15 -0700 writes: > > AustinM> Check out the Hmisc library. > > It's a *package*, not a library ! > [ ... rest deleted ...] As long as the function to load a package is called *library*, I think your campaign to change common usage is doomed to failure. Rich Raubertas __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] Adding labels to variables
References: <[EMAIL PROTECTED]> X-Mailer: VM 7.18 under Emacs 21.3.1 Reply-To: Martin Maechler <[EMAIL PROTECTED]> FCC: ~maechler/F/out --text follows this line-- >>>>> "AustinM" == Austin, Matt <[EMAIL PROTECTED]> >>>>> on Tue, 24 Aug 2004 22:15:15 -0700 writes: AustinM> Check out the Hmisc library. It's a *package*, not a library ! Note that there are also the "comment" and "comment<-" function pair (in R's base) that you could use : > x <- 1:10 > comment(x) <- "this is the price of the R stock" > x [1] 1 2 3 4 5 6 7 8 9 10 > comment(x) [1] "this is the price of the R stock" > comment(x+4) [1] "this is the price of the R stock" [these are probably among the oldest R (non-S) functions, maybe not known for this reason, and not really used in other public functions AFAIK] Martin Maechler AustinM> -Original Message- AustinM> [mailto:[EMAIL PROTECTED] Behalf Of Neil Leonard AustinM> Sent: Tuesday, August 24, 2004 22:0 PM AustinM> To: [EMAIL PROTECTED] AustinM> Subject: [R] Adding labels to variables AustinM> Hi, AustinM> Is it possible to add labels to variables in R (so AustinM> as to have a better description of what the AustinM> variables represent)? __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Adding labels to variables
Neil Leonard tartarus.uwa.edu.au> writes: : Is it possible to add labels to variables in R (so as to have a better : description of what the variables represent)? One can add arbitrarily named attributes to objects. For example, we can add an attribute which we shall call memo to object z: R> z <- 3 R> attr(z,"memo") <- "very important number" R> # sometime later R> z [1] 3 attr(,"memo") [1] "very important number" __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
RE: [R] Adding labels to variables
Check out the Hmisc library. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Neil Leonard Sent: Tuesday, August 24, 2004 22:0 PM To: [EMAIL PROTECTED] Subject: [R] Adding labels to variables Hi, Is it possible to add labels to variables in R (so as to have a better description of what the variables represent)? Thanks, Neil __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] Adding labels to variables
Hi, Is it possible to add labels to variables in R (so as to have a better description of what the variables represent)? Thanks, Neil __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html