Re: [R] adding a function after package.skeleton()

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sun, 30 Dec 2007 13:27:43 -0500

On Dec 30, 2007 1:19 PM, baptiste Auguié <ba208_at_exeter.ac.uk> wrote:

> These two functions use the dataframe "Constants", part of this package:
>
> > `L2eV` <- function(lambda)
> > {
> > data("Constants")
> > Constants$h*Constants$cel/Constants$ee/lambda ->eV
> > eV
> > }
>

This does not answer your question but note that you can do this:

   with(Constants, h * cel / ee / lambda)



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 30 Dec 2007 - 18:35:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 30 Dec 2007 - 22:30:20 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.