isCamelCase: Check if String is camelCase

View source: R/spelling.R

isCamelCaseR Documentation

Check if String is camelCase

Description

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

Usage

isCamelCase(x)

Arguments

x

A character string to check.

Value

TRUE if the string is camelCase, FALSE otherwise.

Examples

isCamelCase("camelCase")   # returns TRUE
isCamelCase("CamelCase")   # returns FALSE
isCamelCase("camelcase")   # returns TRUE


FastUtils documentation built on Sept. 11, 2024, 5:13 p.m.