| rev | R Documentation |
rev provides a reversed version of its argument.
ref_rev(x)
## S3 method for class 'Deque'
ref_rev(x)
## S3 method for class 'Deque'
rev(x)
x |
|
rev uses copy semantics while ref_rev works by reference,
that is, it reverse all elements in place.
For Deque, an object of class Deque
base::rev()
d = deque(a = 1, b = 2, 3)
rev(d)
print(d)
ref_rev(d)
print(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.