gs_norm: Returns a normally distributed vector with mean and SD , with...

Description Usage Arguments Value Examples

View source: R/sim.R

Description

Returns a normally distributed vector with mean and SD , with min and max

Usage

1
gs_norm(.data, colname, mu, sd, round_to_digits = 0, min = NULL, max = NULL)

Arguments

.data

(required) the source data

colname

(optional) the col name for vector added to .data. Recommeded to set else will set at num1

mu

(required) the mean

sd

(required) standard deviation

round_to_digits

(optional) default is 0.

min

(optional) min cut of

maximum

(optional) max vut of

Value

appended dataframe with a numeric vector added as the last col

Examples

1
 gs_norm(data , colname = "age" , mu = 45 , sd = 20 , min = 18 , max =65 )

shambhu112/gsim documentation built on Jan. 21, 2021, 6:20 p.m.