The order function [🇷 for BE/BA]
Hi dlabes,
The rank output is:
2,3,1,4
Which means: #3 comes first (rank=1), then #2, then #1, then #4
The order output is:
3,1,2,4
Which means: When sorted #3 (=5) is first, then #1 (=6), then #2 (=7) and finally #4 (=8).
❝ Can you please elaborate: What is the important distinction between rank and order you detected?
❝ I didn't got it.
x=c(6,7,5,8)
rank(x)
order(x)
The rank output is:
2,3,1,4
Which means: #3 comes first (rank=1), then #2, then #1, then #4
The order output is:
3,1,2,4
Which means: When sorted #3 (=5) is first, then #1 (=6), then #2 (=7) and finally #4 (=8).
—
Pass or fail!
ElMaestro
Pass or fail!
ElMaestro
Complete thread:
- The order function ElMaestro 2024-03-24 17:07 [🇷 for BE/BA]
- The order function ElMaestro 2024-03-24 20:31
- The order function Helmut 2024-03-24 21:12
- The order function d_labes 2024-03-26 19:58
- The order functionElMaestro 2024-03-27 08:43
- The sort function Helmut 2024-04-02 10:51
- The sort function ElMaestro 2024-04-02 22:44
- lag-times of profiles and cor() Helmut 2024-04-04 09:39
- Roaster VII/VIII, Bandana Castor, and Effiou ElMaestro 2024-04-04 12:30
- Nomen est omen Helmut 2024-04-04 13:04
- Nomen est omen ElMaestro 2024-04-04 13:50
- Nomen est omen Ohlbe 2024-04-04 14:52
- Nomen est omen ElMaestro 2024-04-04 16:16
- Nomen est omen nobody 2024-04-10 09:21
- Nomen est omen Ohlbe 2024-04-10 09:34
- Nomen est omen nobody 2024-04-10 10:21
- Nomen est omen Ohlbe 2024-04-10 09:34
- Nomen est omen nobody 2024-04-10 09:21
- Nomen est omen ElMaestro 2024-04-04 16:16
- Nomen est omen Ohlbe 2024-04-04 14:52
- Nomen est omen ElMaestro 2024-04-04 13:50
- Nomen est omen Helmut 2024-04-04 13:04
- Roaster VII/VIII, Bandana Castor, and Effiou ElMaestro 2024-04-04 12:30
- lag-times of profiles and cor() Helmut 2024-04-04 09:39
- The sort function ElMaestro 2024-04-02 22:44
- The sort function Helmut 2024-04-02 10:51
- The order functionElMaestro 2024-03-27 08:43
- The order function ElMaestro 2024-03-24 20:31