SERVING THE QUANTITATIVE FINANCE COMMUNITY

 
User avatar
player
Topic Author
Posts: 2290
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: 33
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
ABOUT WILMOTT

PW by JB

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...


Twitter LinkedIn Instagram

JOBS BOARD

JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...


GZIP: On