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 c2dcaff commit 92324e2Copy full SHA for 92324e2
text_manipulation/is.lower.R
@@ -0,0 +1,12 @@
1
+is.lowercase <- 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 lowercase version
5
+ check_case <- string_split == tolower(string_split)
6
+ # return a boolean value based on the outcome of the check
7
+ return(all(check_case))
8
+}
9
+
10
+is.lowercase("social")
11
12
0 commit comments