Description Usage Arguments Examples
This function checks if the supplied vector is a palindrome (reads the same forwards and backwards).
1 | is_palindrome(x, case.sensitive = FALSE)
|
x |
Numeric or character vector. |
case.sensitive |
Does upper or lower casing matter? Defaults to FALSE. |
1 2 3 4 5 6 | test1 = 123
test2 = "12321"
test3 = c("a",1,2,3,2,1,"a")
is_palindrome(test1)
is_palindrome(test2)
is_palindrome(test3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.