normalize_and_split: Normalize and split two datasets using pooled mean and...

View source: R/31_pre_processing_functions.R

normalize_and_splitR Documentation

Normalize and split two datasets using pooled mean and standard deviation

Description

Combines two datasets, normalizes features using pooled mean and standard deviation, and returns the normalized datasets separately.

Usage

normalize_and_split(df1, df2)

Arguments

df1

A data frame or matrix. Typically group 1.

df2

A data frame or matrix. Typically group 2.

Value

A list with elements:

df1

Normalized version of df1.

df2

Normalized version of df2.

Examples

set.seed(123)
df1 <- matrix(rnorm(20), nrow = 5)
df2 <- matrix(rnorm(20), nrow = 5)
normalize_and_split(df1, df2)


HMC documentation built on June 8, 2025, 10:32 a.m.

Related to normalize_and_split in HMC...