powered by
vector position that has its closest median value
whichmedian(x)
a vector of numbers
# NOT RUN { dados <- c(1,2,3,4,9,5,6) whichmedian(dados) # }
Run the code above in your browser using DataLab