matchMeanSD: Transform Data to Desired Mean and Standard Deviation

Description Usage Arguments Value Author(s) Examples

View source: R/Rfun_matchMeanSD.R

Description

Transform Data to Desired Mean and Standard Deviation

Usage

1
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

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

raincin documentation built on July 1, 2020, 5:53 p.m.

Related to matchMeanSD in raincin...