matchMeanSD {raincin}R Documentation

Transform Data to Desired Mean and Standard Deviation

Description

Transform Data to Desired Mean and Standard Deviation

Usage

matchMeanSD(data, mean = 0, sd = 1)

Arguments

data

a vector includeing data to be transformed

mean

a value of desired mean

sd

a value of desirred SD

Value

a vector of transformed vector

Author(s)

Jiangtao Gou

Fengqing Zhang

Examples

orig_data <- c(1,3,5,10)
trans_data <- matchMeanSD(data=orig_data, mean=100, sd=15)
print(trans_data)



[Package raincin version 1.0.3 Index]