The order function [🇷 for BE/BA]

posted by ElMaestro  – Denmark, 2024-03-27 09:43 (418 d 19:33 ago) – Posting: # 23927
Views: 7,194

Hi dlabes,

❝ 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

Complete thread:

UA Flag
Activity
 Admin contact
23,424 posts in 4,927 threads, 1,684 registered users;
124 visitors (0 registered, 124 guests [including 13 identified bots]).
Forum time: 06:17 CEST (Europe/Vienna)

There are two possible outcomes: if the result confirms the
hypothesis, then you’ve made a measurement. If the result is
contrary to the hypothesis, then you’ve made a discovery.    Enrico Fermi

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5