Skip to contents

remove_single_quotes removes leading and trailing quotes in a character string if present.

Usage

remove_single_quotes(x)

Arguments

x

character vector.

Value

A character vector of the same length as 'x' with all leading and end single quotation marks removed. Input is unchanged if it is numeric.

Examples

remove_single_quotes("'This leading quote will disappear, but not this 'one.")
#> Error in remove_single_quotes("'This leading quote will disappear, but not this 'one."): could not find function "remove_single_quotes"