eval_string: create a string with parts that need to be replaced by a...

Description Usage Arguments Value Examples

View source: R/utils.R

Description

create a string with parts that need to be replaced by a variable's actual values

Usage

1
eval_string(x, nm_in_x, val)

Arguments

x

quote(something)

nm_in_x

the string to in x to be replaced by val (could be a vector)

val

the value to be inserted at "nm_in_x" (could be a vector)

Value

an expression with

Examples

1
2
3
4
5
6
7
mytitle <- quote(paste("(",Y[il],"): ",blabla,collapse=""))
xx <- "design"
eval_string(mytitle,"blabla",xx)

mytitle <- eval_string(quote(paste(a,"--",b,"--","--",c,"--",d)),
   c("a","b","c","d"),c("Thanks","for","using","rewind!"))
plot(rnorm(10),rnorm(10),main=mytitle)

oslerinhealth/rewind documentation built on May 26, 2021, 6:56 a.m.