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

Gabor Grothendieck ggrothendieck at gmail.com
Sun Dec 30 19:27:43 CET 2007


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)



More information about the R-help mailing list