Skip to content
Prev 105512 / 398506 Next

backticks

On 12/4/06, Peter Dalgaard <P.Dalgaard at biostat.ku.dk> wrote:
This shell-like behavior is also available in the gsubfn package
which allows one to process string arguments in arbitrary functions
using backticks by prefacing the function in question with fn$.
For example, by prefacing cat with fn$ we have:

   > library(gsubfn)
   > fn$cat("pi = $pi, pi/2 = `pi/2`\n")
   pi = 3.14159265358979, pi/2 = 1.57079632679490