afni_quote_expression: Quote an Expression

View source: R/afni_quote_expression.R

afni_quote_expressionR Documentation

Quote an Expression

Description

Simple wrapper for ensuring a string has single quotes at the front and end of the string

Usage

afni_quote_expression(x, trim = TRUE)

Arguments

x

character string

trim

should trimws be run first

Value

A character string

Examples

afni_quote_expression("hey")
afni_quote_expression("'hey'")
afni_quote_expression(c("'hey'", "ho", ""))


neuroconductor-devel/afnir documentation built on June 15, 2025, 3:29 a.m.