Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Change text from ALL CAPS to Title Case
#R version 3.3.2 # We have a name in all caps that we want to change to Title Case. name="ANTHONEIL CHAMPAGNIE" # first convert all chars. to lowercase lc.name=tolower(name) maketitle = function(txt){ # function to convert a text string in lowercase to Title Case. theletters = strsplit(txt,'')[[1]] wh = c(1,which(theletters == ' ') + 1) theletters[wh] = toupper(theletters[wh]) paste(theletters,collapse='') } maketitle(lc.name)
run
|
edit
|
history
|
help
0
Controle-22-03-2021
First blood
Análise de experimento em DIC e teste de Tukey
Garima
Hiring Activity
recursive function
Random Forest Example
Mathematical operations
Gab1B-newton
first r program