is_palindrome: This function checks if the given string is a palindrome

Description Usage Arguments Value Author(s) Examples

View source: R/palindrome.R

Description

Tests whether a string or sentence is a palindrome by removing special punctuation characters. A palindrome is equal to its reverse, for example "rotor" or "racecar".

Usage

1

Arguments

str

A string or full sentence

Value

TRUE if s is a palindrome and FALSE otherwise

Author(s)

Som Bohora

Examples

1
is_palindrome("Was It A Rat I Saw?")

sbohora/Somya documentation built on May 14, 2019, 7:35 a.m.