Convert the names of an object from camel case to snake case

camelCaseToSnakeCaseNames(object)

Arguments

object

The object of which the names should be converted

Value

The same object, but with converted names.

Examples

x <- data.frame(conceptId = 1, conceptName = "b")
camelCaseToSnakeCaseNames(x)
#>   concept_id concept_name
#> 1          1            b