I would like to capitalize everything in a character vector that comes after the first
_. For example the following vector:
x <- c("NYC_23df", "BOS_3_rb", "mgh_3_3_f")
Should come out like this:
"NYC_23DF" "BOS_3_RB" "mgh_3_3_F"
I have been trying to play with regular expressions, but am not able to do this. Any suggestions would be appreciated.
What is the keyboard shortcut to convert the currently selected text to capitalized case in the Atom editor?
For example. If I was to select
brown fox and I would hit the keyboard shortcut I'm looking for, it would become
I know Cmd/Ctrl + K + U/L exists for converting to uppercase and lowercase. I hope for something like Cmd/Ctrl + K + C to exist.
How do I make the first letter of a string uppercase, but not change the case of any of the other letters?
"this is a test"->
"This is a test"
"the Eiffel Tower"->
"The Eiffel Tower"
I have a table that was imported as all UPPER CASE and I would like to turn it into Proper Case. What script have any of you used to complete this?