A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Capitalize in R page! Here, you'll find the source code for this program as well as a description of how the program works.
args<-commandArgs(TRUE)
if(length(args) > 0){
if (args[1] != ""){
len = length(args)
array_string <- strsplit(args[1], "")[[1]]
for (i in 1:len){
if (i == 1){
array_string[i] <- toupper(substr(array_string[i], 1, 1))
}
#Convert to Character Vector.... else prints with spaces in between
a = as.character(array_string)
cat(a,fill = FALSE, sep = "")
}
}else{
cat("Usage: please provide a string")
}
}else{
cat("Usage: please provide a string")
}
Capitalize in R was written by:
If you see anything you'd like to change or update, please consider contributing.
No 'How to Implement the Solution' section available. Please consider contributing.
No 'How to Run the Solution' section available. Please consider contributing.