Description Usage Arguments Value Author(s) See Also Examples
Gets the last position of the character or the substring s
starting from fromIndex.
| 1 2 | ## S3 method for class 'String'
lastIndexOf(this, s, fromIndex=0, ...)
 | 
| fromIndex | The index to start the search from. | 
Returns the position. If no such character exists, -1 is returned.
Henrik Bengtsson (http://www.braju.com/R/)
| 1 2 3 4 5 |   s <- String("Hello world!")
  lastIndexOf(s, " ")               # 5
  lastIndexOf(s, "l")               # 9
  lastIndexOf(s, "l", fromIndex=5)  # 3
  lastIndexOf("Hello world!", " ")  # 5
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.