This function either checks for the presence of backticks in a string or removes them, based on the specified action.

clean_string(input_string, action = c("check", "remove"))

Arguments

input_string

A character string to be processed.

action

A character string specifying the action to perform. Either "check" to check for backticks or "remove" to remove backticks. Defaults to "check".

Value

If action is "check", returns a logical value indicating the presence of backticks. If action is "remove", returns the input string with all backticks removed.