Displaying 1 result from an estimated 1 matches for "newbm".
Did you mean:
newbb
2012 Jan 30
4
replacing characters in matrix. substitute, delayedAssign, huh?
..."b" "0.1" "0.1" "0.1"
[5,] "0.1" "b" "d" "0.1" "0.1"
Later on, user code will set values, e.g.,
a <- rnorm(1)
b <- 17
d <- 4
Now, push those into "BM", convert whole thing to numeric
newBM <- apply(BM, c(1,2), as.numeric)
and use newBM for some big calculation.
Then re-set new values for a, b, d, do the same over again.
I've been trying lots of variations on parse, substitute, and eval.
The most interesting function I learned about this morning was delayedAssign.
If I had...