> 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

______________________________________________
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