Learn R Programming

useful (version 1.2.4)

numeric.case: numeric.case

Description

Checks if strings are all numbers or spaces

Usage

numeric.case(string)

Arguments

string

Character vector of strings to check cases

Value

A vector of TRUE AND FALSE

Details

Checks if strings are all numbers and spaces. This is a wrapper for find.case('text', 'numeric').

See Also

find.case upper.case lower.case numeric.case

Examples

Run this code
# NOT RUN {
toCheck <- c('BIG', 'little', 'Mixed', 'BIG WITH SPACE', 
     'little with space', 'MIXED with SPACE', '17')
numeric.case(toCheck)
# }

Run the code above in your browser using DataLab