standizDat: Standardize numeric variables in data frame

View source: R/all_custom_functions.R

standizDatR Documentation

Standardize numeric variables in data frame

Description

The function standardizes all numerical variables (also integers) in a data frame while leaving all other variables unchanged.

Usage

standizDat(x, chngName = TRUE, onlyCenter = FALSE)

Arguments

x

A data frame.

chngName

A logical value indicating whether a tag should be added to the column names of all standardized variables.

onlyCenter

A logical value. If TRUE, the numerical variables are only centered and not scaled.

Value

Returns the standardized data frame.

Examples

d <- iris[1:10,]
d_st <- standizDat(d)
d_st

ryannick28/CustomFunctionsYrotha documentation built on June 1, 2025, 4:02 p.m.