Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r reverse vector

# Reverse vector elements
rev(vec)

# Example:
vec <- c(1, 2, 3, 4)
rev(vec)
>> 4, 3, 2, 1
 
PREVIOUS NEXT
Tagged: #reverse #vector
ADD COMMENT
Topic
Name
9+2 =