title: String comparison in R
body: <p>I am trying to compare two string in R. Please advise how to compare n and reversed_split in the below R code.</p>
  
  <pre><code>n= readLines(file("stdin"))
  string &lt;- strsplit(as.character(n), "")
  string = unlist(string)
  reversed_split = string[nchar(n):1]
  
  if(string == reversed_split)
   print("Indeed")
  else
   print("Not At All")
  </code></pre>