Skip to contents

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
#> [1] TRUE
isCamelCase("CamelCase")   # returns FALSE
#> [1] FALSE
isCamelCase("camelcase")   # returns TRUE
#> [1] TRUE