Description Usage Arguments Details Value Examples
wbs_create()
is typically not called by itself by rather through as_wbs()
.
See wbs_check()
for more details on wbs validity checks.
Returns the vector with appropriate class attributes. Type 'wbs' is not yet assigned.
1 | wbs_create(x, sep = ".", width = NULL, .force = FALSE)
|
x |
Object to be coerced or tested. |
sep |
Not yet implemented. String to split wbs on. Default is ".". Will not be
used if |
width |
Not yet implemented. Integer width that defines a wbs level in the overall
string. Overrides |
.force |
Logical whether to create the wbs even if an invalid entry is detected. |
The following attributes are attached to the return vector.
Number of levels the wbs goes down to.
A character vector with attributes.
1 2 3 4 5 | x <- wbs_create(c("1", "1.1", "1.1.1", "1.2"))
# notice the class is still character
class(x)
class(as_wbs(x))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.