elena1234

Sort function

Apr 11th, 2022 (edited)
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.20 KB | None | 0 0
  1. # Ex 3: Create a script that given a numeric vector x with a length 3, will print out the elements in order from high to low.
  2. x <- c(3,7,1)
  3. desc.numbers <- sort(x, decreasing = T)
  4. print(desc.numbers)
  5.  
Add Comment
Please, Sign In to add comment