Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

scale_protti

Scaling a vector


Description

scale_protti is used to scale a numeric vector either between 0 and 1 or around a centered value using the standard deviation.

Usage

scale_protti(x, method)

Arguments

x

a numeric vector

method

the method to be used for scaling. "01" scales the vector between 0 and 1. "center" scales the vector equal to base::scale around a center. This is done by subtracting the mean from every value and then deviding them by the standard deviation.

Value

A scaled numeric vector.

Examples

scale_protti(c(1, 2, 1, 4, 6, 8), method = "01")

protti

Bottom-Up Proteomics and LiP-MS Quality Control and Data Analysis Tools

v0.1.1
MIT + file LICENSE
Authors
Jan-Philipp Quast [aut, cre], Dina Schuster [aut], ETH Zurich [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.