Simple wrapper for ensuring a string has single quotes at the front and end of the string
afni_quote_expression(x, trim = TRUE)
x | character string |
---|---|
trim | should |
A character string
afni_quote_expression("hey")
#> [1] "'hey'"
afni_quote_expression("'hey'")
#> [1] "'hey'"
afni_quote_expression(c("'hey'", "ho", ""))
#> [1] "'hey'" "'ho'" ""