sqlsubst {surveyNG} | R Documentation |
When the string contains a name bracketed on both signs by %%,
substitute the element of values
with the same name. If the
element of values
is a vector then concatenate with comma
separators first.
sqlsubst(strings, values)
strings |
Vector of character strings |
values |
A list of vectors of values to substitute |
Substituted vector of strings
sqlsubst("get %%vars%% from %%table%%", list(vars=c("name","age","sex"), table="survey_data"))