you could run source(directory/textfilename.txt) [and then you can use it in R]

or paste the function into the console, 

or highlight and pass the function from the built in R text editor, 

or highlight and pass the function from your external text editor (notepad++, 
emacs, textwrangler, etc.)
On Tuesday, March 15, 2011 at 8:21 AM, bra86 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.
> 
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/run-a-slef-written-function-tp3356537p3356537.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.
> 

        [[alternative HTML version deleted]]

______________________________________________
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