Returns the substring left to the first occurence of pattern
1 2 |
1 2 3 4 5 6 7 8 | ## Not run:
str = c("a = 5","b+3","a+3 = 4 = 3", "=")
str.left.of(str,"=")
str.left.of(str,"=", not.found=NA)
str.right.of(str,"=")
str.right.of(str,"=", not.found=NA)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.