I don't know what your work flow looks like, but I certainly do not equate
"writing R with functions" to "passing parameters at the command line".
Rather, these seem quite orthogonal to me. I often have one R file of
functions, and another R file where I source the first file and keep a record
On Thu, 7 May 2015, Clint Bowman wrote:
as in source("pairwise-plots-continuous-vars.R")
Clint,
I did this before converting it to a function, when I modified the
variables in the script. Did not try it as a function, should have.
Thanks,
Rich
On Thu, 7 May 2015, Bert Gunter wrote:
See e.g. Chapter 10.4 in the "Intro to R Tutorial" on the "..." argument.
Bert,
Thanks. That was going to be my next step.
Much appreciated,
Rich
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and
See e.g. Chapter 10.4 in the "Intro to R Tutorial" on the "..." argument.
The general idea is to define your function as:
myfun <- function (named_arguments,...)
{
# Some code
## now call your function as
pairwisePlot(some_named_arguments,...)
}
You would then call myfun with the ...'s replaced
?source
as in source("pairwise-plots-continuous-vars.R")
then
plotpairs(first,second,third,wise,title)
should get you going
Clint BowmanINTERNET: cl...@ecy.wa.gov
Air Quality Modeler INTERNET: cl...@math.utah.edu
Department of Ecology VOIC
5 matches
Mail list logo