Learn R Programming

kim (version 0.6.1)

top_median_or_bottom: Top, median, or bottom

Description

Indicates whether each value in a vector belongs to top, median, or bottom

Usage

top_median_or_bottom(vector)

Value

a character vector indicating whether each element in a vector belongs to "top", "median", or "bottom"

Arguments

vector

a numeric vector

Examples

Run this code
top_median_or_bottom(c(1, 2, 3, NA))
top_median_or_bottom(c(1, 2, 2, NA))
top_median_or_bottom(c(1, 1, 2, NA))

Run the code above in your browser using DataLab