| str.remove.ends | R Documentation |
remove charcaters on left and right of a string str.remove.ends(c("ABCDEF","01"),1,3) returns c("BC","")
## S3 method for class 'remove.ends' str(str, left = 0, right = 0)
## Not run:
str.remove.ends(c("ABCDEF","01345"),1,3)
str.remove.ends(c("ABCDEF"),1:2,1:2)
str.remove.ends(c("ABCDEF","01345"),1:2,1)
# The following calls throw errors!
str.remove.ends(c("ABCDEF","01345"),1:2,1:3)
str.remove.ends(c("ABCDEF","01345","NOW!"),1:2,1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.