Learn R Programming

Fgmutils (version 0.9.5)

whichmedian: whichmedian

Description

vector position that has its closest median value

Usage

whichmedian(x)

Arguments

x

a vector of numbers

Value

vector position that has its closest median value

Examples

Run this code
# NOT RUN {
dados <- c(1,2,3,4,9,5,6)
whichmedian(dados)
# }

Run the code above in your browser using DataLab