getmode: Function calculating statistical mode of given vector.

View source: R/polya_helper_functions.R

getmodeR Documentation

Function calculating statistical mode of given vector.

Description

Function calculating statistical mode of given vector.

Usage

getmode(x, method = "density", na.rm = FALSE)

Arguments

x

character data for which the most frequent value is to be calculated (polya_data column with the lengths of the poly(A) tails)

method

character "density"/"value"; density mode is computed by default.

na.rm

boolean parameter defining whether to remove missing values or not. By a default set to false

Value

statistical mode of given vector.

Examples

## Not run: 

getmode(x = polya_data$tail_length,
        method = "density",
        na.rm = FALSE)


## End(Not run)


smaegol/nanotail documentation built on June 29, 2024, 12:35 a.m.