Chang Jia-Ming
2008-Nov-14 15:31 UTC
[R] the number of the arguments of function is not sure
I want to write a function to plot a picture for each inputting file like
the following example.
plot_test <- function(f1,f2)
{
}
However,
--
Jia-Ming
===========================$BD%2HLC(B 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.jiaming@crg.es
chang.jiaming@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]]
Chang Jia-Ming
2008-Nov-14 16:05 UTC
[R] the number of the arguments of function is not sure
I want to write a function to plot a picture for each inputting file like
the following example.
plot_test <- function(f1,f2)
{
plot_file(f1);
plot_file(f2);
}
However, the above function just could plot two input file.
If the number of input file is not sure, it could be 2, 3 or more.
plot_test(f1, f2)
plot_test(f1, f2, f3) .... or more
I would like to run function, for instance "plot_file", for each input
file.
How could I do?
Is there any solution like argv and argc in C to read arguments in R?
Thank you.
Jia-Ming
[[alternative HTML version deleted]]