Learn R Programming

qmrparser (version 0.1.6)

isSymbol: Is it a symbol?

Description

Checks whether a character is a symbol, a special character.

Usage

isSymbol(ch)

Arguments

ch

character to be checked

Value

TRUE/FALSE, depending on character being a symbol.

Details

These characters are considered as symbols:

'!' , '%' , '&' , '$' , '#' , '+' , '-' , '/' , ':' , '<' , '=' , '>' , '?' , '@' , '\' , '~' , '^' , '|' , '*'

Examples

Run this code
# NOT RUN {
isSymbol('+')
isSymbol('A')
isSymbol('a')
isSymbol('9')
# }

Run the code above in your browser using DataLab