height: Generate Random Vector of Heights

Description Usage Arguments Value Note See Also Examples

Description

height and height_in - Generate a random normal vector of heights in inches.

height_cm - Generate a random normal vector of heights in centimeters.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
height(
  n,
  mean = 69,
  sd = 3.75,
  min = 1,
  max = NULL,
  digits = 0,
  name = "Height"
)

height_in(
  n,
  mean = 69,
  sd = 3.75,
  min = 1,
  max = NULL,
  digits = 1,
  name = "Height(in)"
)

height_cm(
  n,
  mean = 175.26,
  sd = 9.525,
  min = 1,
  max = NULL,
  digits = 1,
  name = "Height(cm)"
)

Arguments

n

The number elements to generate. This can be globally set within the environment of r_data_frame or r_list.

mean

The mean value for the normal distribution to be drawn from.

sd

The standard deviation of the normal distribution to draw from.

min

A numeric lower boundary cutoff. Results less than this value will be replaced with min.

max

A numeric upper boundary cutoff. Results greater than this value will be replaced with max.

digits

Integer indicating the number of decimal places to be used. Negative values are allowed (see round).

name

The name to assign to the output vector's varname attribute. This is used to auto assign names to the column/vector name when used inside of r_data_frame or r_list.

Value

Returns a random normal vector of height elements.

Note

height rounds to nearest whole number. height_in & height_in round to the nearest tenths.

See Also

Other variable functions: age(), animal(), answer(), area(), car(), children(), coin(), color, date_stamp(), death(), dice(), dna(), dob(), dummy(), education(), employment(), eye(), grade_level(), grade(), group(), hair(), income(), internet_browser(), iq(), language, level(), likert(), lorem_ipsum(), marital(), military(), month(), name, normal(), political(), race(), religion(), sat(), sentence(), sex_inclusive(), sex(), smokes(), speed(), state(), string(), upper(), valid(), year(), zip_code()

Examples

1
2
3
height(10)
hist(height(10000))
interval(height, 5, n = 1000)

Example output

 [1] 74 69 66 73 69 71 65 64 70 70
   [1] (65,70] (65,70] (70,75] (70,75] (70,75] (70,75] (70,75] (70,75] (65,70]
  [10] (65,70] (65,70] (65,70] (70,75] (65,70] (60,65] (65,70] (65,70] (65,70]
  [19] (70,75] (70,75] (65,70] (70,75] (65,70] (60,65] (70,75] (65,70] (65,70]
  [28] (65,70] (70,75] (70,75] (65,70] (70,75] (65,70] (70,75] (65,70] (60,65]
  [37] (70,75] (65,70] (70,75] (70,75] (65,70] (60,65] (65,70] (65,70] (70,75]
  [46] (65,70] (70,75] (60,65] (70,75] (60,65] (60,65] (60,65] (65,70] (65,70]
  [55] (65,70] (65,70] (65,70] (70,75] (65,70] (70,75] (70,75] (60,65] (65,70]
  [64] (65,70] (75,80] (65,70] (65,70] (70,75] (60,65] (70,75] (65,70] (65,70]
  [73] (55,60] (70,75] (65,70] (70,75] (75,80] (65,70] (65,70] (65,70] (70,75]
  [82] (70,75] (70,75] (65,70] (65,70] (70,75] (60,65] (65,70] (65,70] (65,70]
  [91] (70,75] (65,70] (70,75] (75,80] (65,70] (65,70] (70,75] (60,65] (65,70]
 [100] (70,75] (60,65] (65,70] (75,80] (65,70] (70,75] (60,65] (70,75] (65,70]
 [109] (70,75] (65,70] (65,70] (65,70] (65,70] (65,70] (65,70] (65,70] (65,70]
 [118] (60,65] (65,70] (70,75] (65,70] (65,70] (65,70] (70,75] (65,70] (65,70]
 [127] (70,75] (60,65] (65,70] (65,70] (65,70] (70,75] (70,75] (70,75] (65,70]
 [136] (60,65] (65,70] (65,70] (65,70] (65,70] (60,65] (65,70] (60,65] (60,65]
 [145] (65,70] (65,70] (70,75] (65,70] (70,75] (55,60] (70,75] (60,65] (70,75]
 [154] (65,70] (65,70] (65,70] (75,80] (70,75] (70,75] (65,70] (65,70] (70,75]
 [163] (70,75] (60,65] (65,70] (65,70] (75,80] (65,70] (70,75] (70,75] (65,70]
 [172] (65,70] (65,70] (65,70] (70,75] (70,75] (65,70] (60,65] (65,70] (60,65]
 [181] (70,75] (60,65] (65,70] (65,70] (65,70] (60,65] (65,70] (70,75] (65,70]
 [190] (70,75] (75,80] (60,65] (65,70] (65,70] (60,65] (65,70] (65,70] (70,75]
 [199] (70,75] (70,75] (60,65] (65,70] (70,75] (65,70] (70,75] (65,70] (65,70]
 [208] (70,75] (65,70] (70,75] (60,65] (65,70] (65,70] (65,70] (75,80] (70,75]
 [217] (65,70] (65,70] (65,70] (65,70] (65,70] (70,75] (65,70] (70,75] (60,65]
 [226] (70,75] (75,80] (65,70] (65,70] (65,70] (75,80] (65,70] (70,75] (65,70]
 [235] (60,65] (60,65] (55,60] (70,75] (65,70] (65,70] (65,70] (65,70] (65,70]
 [244] (65,70] (70,75] (60,65] (65,70] (65,70] (70,75] (70,75] (65,70] (70,75]
 [253] (70,75] (65,70] (70,75] (65,70] (70,75] (70,75] (65,70] (70,75] (60,65]
 [262] (75,80] (65,70] (70,75] (65,70] (65,70] (70,75] (70,75] (65,70] (65,70]
 [271] (70,75] (65,70] (65,70] (60,65] (70,75] (65,70] (65,70] (65,70] (65,70]
 [280] (70,75] (60,65] (70,75] (60,65] (60,65] (65,70] (70,75] (65,70] (60,65]
 [289] (70,75] (65,70] (65,70] (75,80] (65,70] (65,70] (65,70] (60,65] (70,75]
 [298] (70,75] (70,75] (65,70] (65,70] (65,70] (60,65] (65,70] (65,70] (65,70]
 [307] (65,70] (65,70] (70,75] (65,70] (60,65] (65,70] (65,70] (60,65] (65,70]
 [316] (65,70] (70,75] (70,75] (70,75] (70,75] (65,70] (65,70] (65,70] (65,70]
 [325] (65,70] (65,70] (65,70] (70,75] (65,70] (65,70] (60,65] (70,75] (65,70]
 [334] (65,70] (70,75] (65,70] (65,70] (65,70] (75,80] (65,70] (65,70] (70,75]
 [343] (70,75] (70,75] (65,70] (75,80] (70,75] (65,70] (70,75] (65,70] (60,65]
 [352] (65,70] (60,65] (75,80] (65,70] (65,70] (70,75] (60,65] (70,75] (70,75]
 [361] (65,70] (65,70] (75,80] (65,70] (60,65] (70,75] (60,65] (60,65] (70,75]
 [370] (65,70] (65,70] (65,70] (75,80] (60,65] (65,70] (65,70] (70,75] (70,75]
 [379] (70,75] (70,75] (70,75] (65,70] (60,65] (70,75] (65,70] (60,65] (65,70]
 [388] (70,75] (70,75] (70,75] (65,70] (65,70] (70,75] (65,70] (70,75] (65,70]
 [397] (60,65] (60,65] (65,70] (65,70] (60,65] (65,70] (70,75] (65,70] (65,70]
 [406] (70,75] (65,70] (70,75] (65,70] (70,75] (65,70] (70,75] (65,70] (70,75]
 [415] (65,70] (65,70] (65,70] (70,75] (70,75] (65,70] (70,75] (65,70] (65,70]
 [424] (60,65] (70,75] (65,70] (70,75] (70,75] (60,65] (70,75] (65,70] (70,75]
 [433] (65,70] (70,75] (65,70] (70,75] (70,75] (60,65] (70,75] (65,70] (65,70]
 [442] (65,70] (70,75] (70,75] (60,65] (65,70] (65,70] (75,80] (70,75] (65,70]
 [451] (70,75] (70,75] (65,70] (65,70] (70,75] (70,75] (65,70] (70,75] (70,75]
 [460] (65,70] (65,70] (65,70] (65,70] (70,75] (75,80] (65,70] (60,65] (70,75]
 [469] (65,70] (60,65] (65,70] (65,70] (60,65] (65,70] (65,70] (65,70] (70,75]
 [478] (65,70] (70,75] (55,60] (65,70] (70,75] (70,75] (60,65] (70,75] (65,70]
 [487] (60,65] (75,80] (65,70] (65,70] (65,70] (60,65] (60,65] (75,80] (65,70]
 [496] (60,65] (70,75] (65,70] (70,75] (65,70] (65,70] (65,70] (70,75] (65,70]
 [505] (65,70] (70,75] (65,70] (70,75] (70,75] (70,75] (65,70] (70,75] (65,70]
 [514] (65,70] (65,70] (65,70] (70,75] (65,70] (65,70] (70,75] (65,70] (65,70]
 [523] (65,70] (65,70] (65,70] (60,65] (65,70] (55,60] (70,75] (70,75] (75,80]
 [532] (70,75] (65,70] (70,75] (65,70] (70,75] (65,70] (65,70] (70,75] (70,75]
 [541] (65,70] (70,75] (65,70] (60,65] (65,70] (65,70] (65,70] (70,75] (65,70]
 [550] (70,75] (65,70] (65,70] (65,70] (65,70] (60,65] (70,75] (70,75] (65,70]
 [559] (65,70] (65,70] (65,70] (70,75] (70,75] (70,75] (65,70] (65,70] (65,70]
 [568] (65,70] (60,65] (60,65] (65,70] (65,70] (75,80] (65,70] (60,65] (70,75]
 [577] (65,70] (70,75] (70,75] (65,70] (65,70] (65,70] (65,70] (60,65] (65,70]
 [586] (70,75] (65,70] (65,70] (65,70] (70,75] (60,65] (60,65] (70,75] (65,70]
 [595] (70,75] (65,70] (65,70] (65,70] (65,70] (70,75] (75,80] (70,75] (60,65]
 [604] (70,75] (70,75] (60,65] (60,65] (65,70] (65,70] (65,70] (65,70] (65,70]
 [613] (65,70] (70,75] (65,70] (60,65] (60,65] (65,70] (65,70] (65,70] (65,70]
 [622] (70,75] (60,65] (70,75] (65,70] (65,70] (65,70] (65,70] (65,70] (65,70]
 [631] (65,70] (65,70] (65,70] (70,75] (65,70] (75,80] (65,70] (60,65] (60,65]
 [640] (60,65] (70,75] (70,75] (65,70] (70,75] (70,75] (60,65] (65,70] (70,75]
 [649] (70,75] (60,65] (70,75] (65,70] (70,75] (65,70] (70,75] (70,75] (65,70]
 [658] (70,75] (65,70] (65,70] (70,75] (60,65] (70,75] (65,70] (70,75] (65,70]
 [667] (70,75] (70,75] (65,70] (75,80] (65,70] (70,75] (70,75] (70,75] (65,70]
 [676] (65,70] (70,75] (60,65] (70,75] (65,70] (65,70] (65,70] (70,75] (70,75]
 [685] (60,65] (65,70] (70,75] (65,70] (65,70] (60,65] (70,75] (65,70] (70,75]
 [694] (65,70] (65,70] (70,75] (65,70] (65,70] (70,75] (65,70] (65,70] (70,75]
 [703] (70,75] (60,65] (60,65] (65,70] (70,75] (70,75] (65,70] (70,75] (65,70]
 [712] (60,65] (65,70] (65,70] (65,70] (70,75] (70,75] (70,75] (60,65] (65,70]
 [721] (65,70] (65,70] (70,75] (70,75] (65,70] (65,70] (60,65] (60,65] (70,75]
 [730] (65,70] (70,75] (70,75] (60,65] (60,65] (70,75] (60,65] (75,80] (65,70]
 [739] (60,65] (65,70] (60,65] (70,75] (65,70] (70,75] (70,75] (65,70] (60,65]
 [748] (70,75] (65,70] (70,75] (65,70] (65,70] (70,75] (65,70] (60,65] (70,75]
 [757] (65,70] (70,75] (75,80] (75,80] (65,70] (70,75] (65,70] (65,70] (65,70]
 [766] (65,70] (65,70] (65,70] (65,70] (65,70] (60,65] (70,75] (70,75] (60,65]
 [775] (70,75] (70,75] (70,75] (65,70] (65,70] (70,75] (65,70] (65,70] (65,70]
 [784] (60,65] (65,70] (65,70] (65,70] (70,75] (70,75] (65,70] (70,75] (70,75]
 [793] (60,65] (65,70] (75,80] (60,65] (70,75] (70,75] (70,75] (65,70] (65,70]
 [802] (60,65] (60,65] (65,70] (70,75] (70,75] (60,65] (55,60] (65,70] (65,70]
 [811] (65,70] (60,65] (70,75] (70,75] (65,70] (60,65] (70,75] (65,70] (65,70]
 [820] (70,75] (70,75] (65,70] (70,75] (65,70] (70,75] (65,70] (70,75] (70,75]
 [829] (70,75] (70,75] (70,75] (60,65] (60,65] (60,65] (75,80] (65,70] (75,80]
 [838] (65,70] (65,70] (70,75] (70,75] (60,65] (65,70] (75,80] (70,75] (65,70]
 [847] (65,70] (65,70] (65,70] (65,70] (70,75] (65,70] (65,70] (65,70] (70,75]
 [856] (70,75] (70,75] (65,70] (70,75] (65,70] (65,70] (65,70] (75,80] (75,80]
 [865] (65,70] (70,75] (70,75] (60,65] (70,75] (70,75] (70,75] (70,75] (65,70]
 [874] (70,75] (65,70] (70,75] (65,70] (65,70] (65,70] (70,75] (70,75] (65,70]
 [883] (65,70] (70,75] (65,70] (65,70] (75,80] (65,70] (65,70] (65,70] (70,75]
 [892] (60,65] (65,70] (65,70] (70,75] (70,75] (60,65] (70,75] (70,75] (65,70]
 [901] (70,75] (70,75] (65,70] (65,70] (70,75] (70,75] (70,75] (70,75] (70,75]
 [910] (65,70] (60,65] (70,75] (70,75] (65,70] (65,70] (70,75] (60,65] (70,75]
 [919] (60,65] (60,65] (65,70] (70,75] (65,70] (70,75] (70,75] (65,70] (60,65]
 [928] (65,70] (70,75] (75,80] (65,70] (65,70] (65,70] (65,70] (70,75] (65,70]
 [937] (60,65] (65,70] (65,70] (70,75] (65,70] (65,70] (60,65] (70,75] (65,70]
 [946] (65,70] (65,70] (60,65] (60,65] (70,75] (60,65] (70,75] (65,70] (70,75]
 [955] (65,70] (65,70] (70,75] (65,70] (65,70] (65,70] (65,70] (65,70] (70,75]
 [964] (65,70] (60,65] (65,70] (70,75] (65,70] (65,70] (70,75] (55,60] (70,75]
 [973] (70,75] (55,60] (60,65] (65,70] (65,70] (70,75] (70,75] (70,75] (65,70]
 [982] (70,75] (65,70] (60,65] (60,65] (65,70] (65,70] (70,75] (70,75] (60,65]
 [991] (70,75] (60,65] (65,70] (70,75] (60,65] (70,75] (65,70] (65,70] (70,75]
[1000] (70,75]
Levels: (55,60] (60,65] (65,70] (70,75] (75,80]

wakefield documentation built on Sept. 14, 2020, 1:07 a.m.