zero_one_scale {pmartR} | R Documentation |
Zero to One scaling
Description
Re-scales the data to be between 0 and 1
Usage
zero_one_scale(e_data, edata_id)
Arguments
e_data |
e_data a |
edata_id |
character string indicating the name of the peptide, protein,
lipid, or metabolite identifier. Usually obtained by calling
|
Details
The sample-wise minimum of the features is subtracted from each feature in e_data, then divided by the difference between the sample-wise minimum and maximum of the features to get the normalized data. The location estimates are not applicable for this data and the function returns a NULL list element as a placeholder. The scale estimates are the sample-wise feature ranges. All NA values are replcaed with zero.
Value
List containing two elements: norm_params
is list with two
elements:
scale | Range of each sample used in scaling |
location | NULL |
backtransform_params
is a list with two elements:
scale | NULL |
location | NULL |
The transformed data is returned as a third list item.
Author(s)
Lisa Bramer, Kelly Stratton, Rachel Richardson