Hello, If test2 and test1 functions are in two files like test2.R and test1.R, how could I do to let test2 know test1 function?
Cheers, Jia Ming 2009/3/4 Usuario R <r.user.sp...@gmail.com> > Hi, > > > I think you just have to call it with the correct arguments inside test2 > function. So the arguments for test1 functions should be consider to be also > arguments of test2 function. > > > test2 <- function( test1arguments, test2arguments ){ > ... > value <- test1( test1arguments ) > ... > > } > > Regards > > > > 2009/3/4 Chang Jia-Ming <chang.jiam...@crg.es> > >> 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: chang.jiam...@crg.es >> chang.jiam...@gmail.com >> Web: >> http://www.iis.sinica.edu.tw/~jmchang/<http://www.iis.sinica.edu.tw/%7Ejmchang/> >> TEL: +34 933 160 223 ext. 1223 >> CellPhone:+34 637 180 355 >> ============================ >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> 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. >> > > > > -- > Patricia Garc¨ªa > -- 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: chang.jiam...@crg.es chang.jiam...@gmail.com Web: http://www.iis.sinica.edu.tw/~jmchang/ TEL: +34 933 160 223 ext. 1223 CellPhone:+34 637 180 355 ============================ [[alternative HTML version deleted]]
______________________________________________ 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.