Description Usage Arguments Examples
Constructer of the bstr class object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
x |
A character vector which convert to a bstr object. |
n |
A character vector which is name of x. |
ucase |
A logical. If TRUE the x is converted to upper case. (default: FALSE) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | bstr("Apple", "apple")
bstr(c("Apple", "potato"), c("apple", "imo"), ucase = TRUE)
dstr("A.Bad.bat", "It is")
dstr(c("A", "bad", "Bat"), ucase = TRUE)
pstr("Wqrld", "HELLQ", ucase = TRUE)
### Check class
is_bstr(bstr("apple"))
is_bstr(c("apple", "orange"))
is_dstr(dstr("bad"))
is_pstr(pstr("I.am.a.geek"))
### Convert character to bstr object
as_dstr("bad", "good", ucase = TRUE)
# as_dstr(c("good", "bad")) # Error
as_pstr("Wqrld", "HELLQ", ucase = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.