Hi,
You can use the source() function to load functions from other files, like:
source("test1.R")
cheers,
Paul
Chang Jia-Ming wrote:
Dear all,
I wrote a function test1 in test1.R.
Right, I am writing another function test2 on test2.R and trying to use
test1 function.
How can I do?
Is there any similar way like including test1.R in test2.R file?
Thank You Very Much.
Jia-Ming
============================
張家銘 Jia-Ming Chang
PhD Student
Comparative Bioinformatics Group
Bioinformatics and Genomics Programme
Centre de Regulacio Genomica (CRG)
Dr. Aiguader, 88
08003 Barcelona
Spain
E-Mail: [email protected]
[email protected]
Web: http://www.iis.sinica.edu.tw/~jmchang/
TEL: +34 933 160 223 ext. 1223
CellPhone:+34 637 180 355
============================
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.
--
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone: +3130 274 3113 Mon-Tue
Phone: +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul
______________________________________________
[email protected] 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.