Serving the Quantitative Finance Community

 
User avatar
player
Topic Author
Posts: 0
Joined: August 5th, 2002, 10:00 am

R function

July 10th, 2011, 8:44 am

A very basic question but how do I connect a function I wrote in R to the console egI have this function which work in the console.logistic <- function(r,x) r*x*(1-x)But I want to be able to add it to a library and then call it directly when I start up R
 
User avatar
arvanitis
Posts: 0
Joined: May 6th, 2011, 1:50 pm

R function

July 11th, 2011, 8:26 am

write a source file function.rand either hit source("function.r") or add it to your start up env