Scale matrix with Z-score.

rowZscores(m = NULL, min = -2, max = 2, limit = FALSE)

Arguments

m

the matrix need to zscore transform.

min

the minimum value for the zscore. Default: -2.

max

the maximum value for the zscore. Default: 2.

limit

Whether to limit the maximum and minimum values of zscore. Default: FALSE.

Value

matrix after the zscore transform.

Examples

 rowZscores(m = mat, min = -2, max = 2, limit = TRUE)
#> Error in eval(expr, envir, enclos): object 'mat' not found