source("myfunction.R") is the usual approach. You could also
just copy your code and paste it into the R console.

Sarah

On Tue, Mar 15, 2011 at 9:21 AM, bra86 <anastasia.krikovts...@tugraz.at> wrote:
> How could one get started with a self-written function?
> I have a function written in .txt format, but can not find the way to import
> it to the R space.
> Would be very appreciated for help.


-- 
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
R-help@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.

Reply via email to