search for: bbsubst

Displaying 1 result from an estimated 1 matches for "bbsubst".

2013 Dec 17
3
In-string variable/symbol substitution: What formats/syntax is out there?
...riends does not count. Thanks Henrik PS. The following is on the borderline because it does not do automatic variable look up, but since others may bring it up and/or know of a neater approach, I mention it too: ** copySubstitute() in the 'Biobase' package (with some efforts), e.g. > bbsubst <- function(fmt, ...) { args <- lapply(list(...), FUN=as.character) in <- textConnection(fmt) out <- textConnection("res", open="w") on.exit({ close(in); close(out) }) copySubstitute(in, out, symbolValues=args) res } > bbsubst("pi = @pi@", pi...