normala: Normalize x

Description Usage Arguments Details Value Examples

View source: R/normala.R

Description

This function is used to normalize x

Usage

1
normala(x, na.rm = FALSE)

Arguments

x

The vector of numbers that will be normalized.

na.rm

When na.rm is TRUE, it will be ignored in calculation. When it is FALSE, it will be used in calculation.

Details

This is used when comparing variables but they have different units. The input value must be numeric.

Value

A vector of numbers resulting from x

Examples

1
2
normala(1:20)
normala(c(1:20,NA),na.rm=TRUE)

Jintong1997/Jintongpackage documentation built on Dec. 18, 2021, 1:37 a.m.