r Wektor odwrotny

# Reverse vector elements
rev(vec)

# Example:
vec <- c(1, 2, 3, 4)
rev(vec)
>> 4, 3, 2, 1
Cautious Caiman