I am trying to calculate the medians of a dataset vector swith a column A1and B1. The median vector is the median for each observation from both columns.
I tried to do this and it did not work.
median(s[c("A1","B1")])
Is there any other way to do this?
source
share