Learn R Programming

FastUtils (version 0.2.1)

isPascalCase: Check if String is PascalCase

Description

This function checks if a given string adheres to PascalCase naming conventions, starting with an uppercase letter followed by any combination of upper and lower case letters.

Usage

isPascalCase(x)

Value

TRUE if the string is PascalCase, FALSE otherwise.

Arguments

x

A character string to check.

Examples

Run this code
isPascalCase("PascalCase") # returns TRUE
isPascalCase("pascalCase") # returns FALSE
isPascalCase("Pascalcase") # returns TRUE

Run the code above in your browser using DataLab