Learn R Programming

r2shortcode (version 0.2)

hasSpecialCharacters: Does string have special characters?

Description

Evaluates if a specified string contains special characters

Usage

hasSpecialCharacters(string)

Value

TRUE or FALSE

Arguments

string

The string to evaluate

Examples

Run this code
strToTest1 <- 'obi_%_good_^you'
strToTest2 <- 'obigoodyou'
hasSpecialCharacters(strToTest1)
hasSpecialCharacters(strToTest2)

Run the code above in your browser using DataLab