stdx: Standarization

Description Usage Arguments Details Author(s) See Also Examples

View source: R/stdx.R

Description

Standarizes a vector or matrix, i.e., scales all the values in a way that the transformed values will be within the range [0, 1].

Usage

1
stdx(x, ...)

Arguments

x

vector, matrix or data.frame to be scaled

...

further arguments passed to or from other methods

Details

z = scale(x) = [ x - xmin ] / [ xmax - xmin ]

Author(s)

Mauricio Zambrano-Bigiarini, mzb.devel@gmail

See Also

scale, istdx

Examples

1
2
3
4
5
6
############
## Loading the monthly time series of precipitation within the Ebro River basin.
data(EbroPPtsMonthly)

# Standarizing only some values of 'EbroPPtsMonthly'
stdx(as.matrix(EbroPPtsMonthly[1:70,10:13]))

hydroTSM documentation built on March 13, 2020, 2:23 a.m.