Message-ID: <20090104213313.GA9202@localhost>
Date: 2009-01-04T21:33:13Z
From: Philipp Pagel
Subject: Error "could not find function"
In-Reply-To: <21279720.post@talk.nabble.com>
> I have copied a very simple function but when I try to call it I get an error
> message "could not find function". The function file is named addthree.r and
> I cd to the directory where the function is saved before calling it. What am
> I doing wrong?
R does not look for funcitons to execute in random files. You
have to source() the file to execute the code -- i.e. define the
function in the current session. See also section 1.10 of the
manual ("An Introduction to R").
cu
Philipp
--
Dr. Philipp Pagel
Lehrstuhl f?r Genomorientierte Bioinformatik
Technische Universit?t M?nchen
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
http://mips.gsf.de/staff/pagel