Re: [R] Calling functions

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Tue, 17 Jun 2008 06:11:11 -0700 (PDT)


It's not in a library, it is essentially just a little stored program or script Just use source() to load it and it will automatically run. Do a ls() to confirm it's there :)

> From: Michael Pearmain <mpearmain_at_google.com>
> Subject: [R] Calling functions
> To: r-help@r-project.org
> Received: Tuesday, June 17, 2008, 7:32 AM
> Another newbie question.
>
> I've written a function and saved the file as Xtabs.R,
> in a central place on
> a network so others will be able ot use the function,
> My question is how do i call this function?
>
> I've tried to chance the working directory, and tried
> to load it via;
> > library(Xtabs,
> lib.loc="//filer/common/technical/surveys/R_test")
>
> but neither seem to work? the function inside is called
> CrossTable.
>
> Mant thanks in advance
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.



[[elided Yahoo spam]]

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 Tue 17 Jun 2008 - 13:39:25 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 Tue 17 Jun 2008 - 14:30:47 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.

list of date sections of archive