Learn R Programming

rSHAPE (version 0.3.2)

trimQuotes: This is a function to trim a string by removing the first and last character, it's used to trim quotation marks used in the parameter input

Description

This is a function to trim a string by removing the first and last character, it's used to trim quotation marks used in the parameter input

Usage

trimQuotes(funcIn)

Arguments

funcIn

a vector of character strings which you want trimmed

Value

character vector of length equal to the input

Examples

Run this code
# NOT RUN {
# It removes leading and trailing string positions, use when quotations are known to exist.
trimQuotes(c('"someWords"','otherwords"',"is_changed"))

# }

Run the code above in your browser using DataLab