Learn R Programming

COINr (version 1.1.14)

n_fracmax: Normalise as fraction of max value

Description

The ratio of each value of x to max(x).

Usage

n_fracmax(x)

Value

Numeric vector

Arguments

x

A numeric vector

Details

$$ x / x_{max} $$

Examples

Run this code
x <- runif(20)
n_fracmax(x)

Run the code above in your browser using DataLab