cascade | R Documentation |
along a given length n make ascending indices until reaching the midpoint and descend afterwards again.
cascade(n, type = 1)
n |
|
type |
(integer, default=1). If 1 the cascade index is returned. 2 returns the index of left and right side, 3 returns the length of the left and right index vector |
vector (type 1 or 3) or list (type 2)
## Not run:
for (n in 1:10) {
print(cascade(n))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.