| tree | R Documentation |
str() into a tree diagramThe super useful function str() uses .. to indicate the level
of sub-elements of an object, which may be difficult to read. This function
uses vertical pipes to connect all sub-elements on the same level, so it is
clearer which elements belong to the same parent element in an object with a
nested structure (such as a nested list).
tree(...)
... |
Arguments to be passed to |
A character string as a raw_string().
fit = lsfit(1:9, 1:9)
str(fit)
xfun::tree(fit)
fit = lm(dist ~ speed, data = cars)
str(fit)
xfun::tree(fit)
# some trivial examples
xfun::tree(1:10)
xfun::tree(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.