View source: R/31_pre_processing_functions.R
normalize_and_split | R Documentation |
Combines two datasets, normalizes features using pooled mean and standard deviation, and returns the normalized datasets separately.
normalize_and_split(df1, df2)
df1 |
A data frame or matrix. Typically group 1. |
df2 |
A data frame or matrix. Typically group 2. |
A list with elements:
Normalized version of df1
.
Normalized version of df2
.
set.seed(123)
df1 <- matrix(rnorm(20), nrow = 5)
df2 <- matrix(rnorm(20), nrow = 5)
normalize_and_split(df1, df2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.