R Documentation |
Print the data in a container.
print(x, ...)
x |
A |
... |
An ellipsis for compatibility with the generic method. Accepts the parameters |
print
has no side effects. Unlike to_r, it does not remove elements from stacks or queues.
Invisibly returns NULL
.
sorting, to_r, type.
s <- cpp_set(4:9)
print(s)
# 4 5 6 7 8 9
print(s, n = 3)
# 4 5 6
print(s, n = -3)
# 9 8 7
print(s, from = 5, to = 7)
# 5 6 7
v <- cpp_vector(4:9)
print(v, n = 2)
# 4 5
print(v, from = 2, to = 3)
# 5 6
print(v, from = 3)
# 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.