Learn R Programming

rACMEMEEV (version 1.0.1)

standardize_with_return: Standardize the data of 1-D vector

Description

Perform standardization of data on a 2-D dataframe type object. Standardization in this case refers to (x - mean(x)) / sd(x) where X is a 1-dimensional vector.

Usage

standardize_with_return(data)

Value

List with the original standard deviation, mean, and the standardized data

Arguments

data

vector The vector to standardize

Examples

Run this code
data <- rnorm(100, mean = 0, sd = 1)
standardize_with_return(data)

Run the code above in your browser using DataLab