Displaying 1 result from an estimated 1 matches for "buildparstring".
2010 Feb 01
0
Building a plotmath string in a function
...be best.
I've attempted a variety of as.expressions, substitutes, evals in a loop
that loops through the list of parameters sent to the function but am
getting nowhere. Could someone point me to some references beyond the
standard documentation that might help. Here's my latest attempt:
BuildParString = function(params) {
nPar = length(params) # params is a vector of numerical values
s = NULL
if(nPar < 1) {
return
}
pNames = c("R","P[m]","k[a]","alpha[r]","beta[r]","phi")
vparams = format(params,digits=3)
s =...