median:code01
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| median:code01 [2026/03/10 02:42] – created hkimscil | median:code01 [2026/03/10 03:31] (current) – hkimscil | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| < | < | ||
| - | > a <- c(104, 19, 20, 19, 20, 100, 20, 21, 21, 24) | + | a <- c(104, 19, 20, 19, 20, 100, 20, 21, 21, 24) |
| - | > sort(a) | + | sort(a) |
| - | [1] 19 19 20 20 20 21 21 24 100 104 | + | print(a) |
| - | > print(a) | + | median(a) |
| - | [1] 104 19 20 19 20 100 20 21 21 24 | + | mean(a) |
| </ | </ | ||
| - | $$ \text{median} = \frac {(20 + 21)}{2} $$ | ||
| - | |||
median/code01.1773110531.txt.gz · Last modified: by hkimscil
