snakeToCamel | R Documentation |
Given a string like "mean_attitude", the function returns "meanAttitude". But for any given string segment involving an underscore character, the the segment will be transformed only if the character before the underscore is a lower-case letter. For example, "MEAN_attitude" won't be transformed. Nor will "PID3_early."
snakeToCamel(x)
x |
A string. |
spaceToCamel
snakeToCamel("party_ID") # [1] "partyID" snakeToCamel("hours_9_to_5") # [1] "hours9_to_5"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.