We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce8a694 commit c2dcaffCopy full SHA for c2dcaff
text_manipulation/is.uppercase.R
@@ -0,0 +1,10 @@
1
+is.uppercase <- function(string) {
2
+ # split the string at character level
3
+ string_split <- c(unlist(strsplit(string, split = "")))
4
+ # check if the split string exactly matches its uppercase version
5
+ check_case <- string_split == toupper(string_split)
6
+ # return a boolean value based on the outcome of the check
7
+ return(all(check_case))
8
+}
9
+
10
+is.uppercase("BUSINESS")
0 commit comments