str.left.of | R Documentation |
Returns the substring left to the first occurence of pattern
## S3 method for class 'left.of' str(str, pattern, ..., not.found = str)
## 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.