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
Mobile-Sprite-image-Interval
sum of digits is prime
Paired t-test [Access Medical Information]
jcfatorial
# Bisection (numerical method) - Método da Bissecção
Compute & Plot (approx.) Solar Declination Function f(d)
Generating prime numbers in R
AjusteLinearizado-09-01-21
Tournois Mount & Blade
waves 2