iq: Generate Random Vector of Intelligence Quotients (IQs)

Description Usage Arguments Value See Also Examples

Description

Generate a random normal vector of intelligence quotients (IQs).

Usage

1
2
iq(n, mean = 100, sd = 10, min = 0, max = NULL, digits = 0,
  name = "IQ")

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 IQ elements.

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, height, income, internet_browser, 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
iq(10)
hist(iq(10000))
interval(iq, 5, n = 1000)

Example output

 [1]  92 119  99  85 111 108  98 109 111 101
   [1] (95,107]  (95,107]  (95,107]  (107,119] (95,107]  (107,119] (83,95]  
   [8] (83,95]   (83,95]   (83,95]   (95,107]  (83,95]   (107,119] (95,107] 
  [15] (95,107]  (107,119] (83,95]   (83,95]   (83,95]   (83,95]   (119,131]
  [22] (107,119] (95,107]  (107,119] (83,95]   (107,119] (95,107]  (119,131]
  [29] (107,119] (107,119] (95,107]  (83,95]   (70.9,83] (95,107]  (107,119]
  [36] (119,131] (83,95]   (95,107]  (107,119] (83,95]   (95,107]  (107,119]
  [43] (95,107]  (95,107]  (95,107]  (95,107]  (70.9,83] (95,107]  (83,95]  
  [50] (107,119] (95,107]  (95,107]  (95,107]  (95,107]  (95,107]  (95,107] 
  [57] (95,107]  (95,107]  (95,107]  (83,95]   (107,119] (95,107]  (107,119]
  [64] (95,107]  (119,131] (95,107]  (95,107]  (107,119] (83,95]   (95,107] 
  [71] (119,131] (95,107]  (95,107]  (95,107]  (95,107]  (83,95]   (83,95]  
  [78] (70.9,83] (83,95]   (95,107]  (95,107]  (107,119] (95,107]  (95,107] 
  [85] (95,107]  (95,107]  (107,119] (95,107]  (107,119] (119,131] (83,95]  
  [92] (95,107]  (83,95]   (83,95]   (95,107]  (95,107]  (95,107]  (95,107] 
  [99] (95,107]  (83,95]   (95,107]  (83,95]   (83,95]   (70.9,83] (70.9,83]
 [106] (95,107]  (95,107]  (107,119] (107,119] (95,107]  (95,107]  (83,95]  
 [113] (95,107]  (107,119] (83,95]   (107,119] (95,107]  (95,107]  (95,107] 
 [120] (107,119] (83,95]   (83,95]   (95,107]  (83,95]   (70.9,83] (83,95]  
 [127] (83,95]   (107,119] (83,95]   (107,119] (83,95]   (95,107]  (119,131]
 [134] (95,107]  (119,131] (107,119] (95,107]  (95,107]  (95,107]  (107,119]
 [141] (95,107]  (95,107]  (83,95]   (95,107]  (83,95]   (95,107]  (107,119]
 [148] (95,107]  (83,95]   (83,95]   (95,107]  (95,107]  (95,107]  (70.9,83]
 [155] (95,107]  (83,95]   (83,95]   (83,95]   (83,95]   (95,107]  (119,131]
 [162] (95,107]  (95,107]  (107,119] (95,107]  (107,119] (107,119] (95,107] 
 [169] (107,119] (95,107]  (107,119] (95,107]  (107,119] (95,107]  (95,107] 
 [176] (107,119] (95,107]  (95,107]  (83,95]   (83,95]   (95,107]  (83,95]  
 [183] (95,107]  (95,107]  (107,119] (83,95]   (95,107]  (83,95]   (95,107] 
 [190] (95,107]  (83,95]   (83,95]   (95,107]  (95,107]  (107,119] (107,119]
 [197] (70.9,83] (95,107]  (107,119] (83,95]   (107,119] (83,95]   (107,119]
 [204] (107,119] (95,107]  (83,95]   (83,95]   (83,95]   (83,95]   (95,107] 
 [211] (83,95]   (83,95]   (95,107]  (107,119] (95,107]  (95,107]  (95,107] 
 [218] (83,95]   (107,119] (70.9,83] (83,95]   (95,107]  (83,95]   (95,107] 
 [225] (95,107]  (83,95]   (107,119] (83,95]   (95,107]  (107,119] (119,131]
 [232] (95,107]  (83,95]   (119,131] (107,119] (95,107]  (107,119] (95,107] 
 [239] (95,107]  (95,107]  (95,107]  (70.9,83] (107,119] (83,95]   (95,107] 
 [246] (95,107]  (95,107]  (107,119] (95,107]  (95,107]  (95,107]  (95,107] 
 [253] (107,119] (95,107]  (95,107]  (83,95]   (95,107]  (95,107]  (95,107] 
 [260] (107,119] (95,107]  (95,107]  (107,119] (95,107]  (107,119] (95,107] 
 [267] (95,107]  (83,95]   (95,107]  (95,107]  (95,107]  (95,107]  (95,107] 
 [274] (95,107]  (95,107]  (95,107]  (83,95]   (95,107]  (83,95]   (95,107] 
 [281] (83,95]   (107,119] (95,107]  (83,95]   (95,107]  (95,107]  (107,119]
 [288] (95,107]  (95,107]  (95,107]  (119,131] (95,107]  (83,95]   (107,119]
 [295] (95,107]  (107,119] (119,131] (107,119] (83,95]   (83,95]   (70.9,83]
 [302] (83,95]   (95,107]  (95,107]  (95,107]  (95,107]  (83,95]   (107,119]
 [309] (119,131] (83,95]   (95,107]  (70.9,83] (83,95]   (107,119] (107,119]
 [316] (107,119] (83,95]   (107,119] (95,107]  (95,107]  (95,107]  (95,107] 
 [323] (70.9,83] (95,107]  (95,107]  (95,107]  (95,107]  (83,95]   (95,107] 
 [330] (107,119] (95,107]  (83,95]   (107,119] (83,95]   (95,107]  (83,95]  
 [337] (107,119] (83,95]   (83,95]   (95,107]  (95,107]  (95,107]  (107,119]
 [344] (83,95]   (83,95]   (107,119] (95,107]  (95,107]  (95,107]  (107,119]
 [351] (95,107]  (107,119] (119,131] (70.9,83] (107,119] (83,95]   (95,107] 
 [358] (95,107]  (95,107]  (95,107]  (83,95]   (95,107]  (95,107]  (107,119]
 [365] (83,95]   (95,107]  (95,107]  (83,95]   (107,119] (83,95]   (70.9,83]
 [372] (107,119] (119,131] (107,119] (83,95]   (83,95]   (95,107]  (95,107] 
 [379] (107,119] (95,107]  (95,107]  (83,95]   (83,95]   (83,95]   (95,107] 
 [386] (107,119] (95,107]  (107,119] (83,95]   (107,119] (107,119] (107,119]
 [393] (83,95]   (95,107]  (83,95]   (83,95]   (95,107]  (107,119] (95,107] 
 [400] (95,107]  (95,107]  (83,95]   (95,107]  (95,107]  (83,95]   (95,107] 
 [407] (70.9,83] (95,107]  (95,107]  (107,119] (95,107]  (83,95]   (107,119]
 [414] (95,107]  (83,95]   (95,107]  (107,119] (107,119] (83,95]   (107,119]
 [421] (83,95]   (83,95]   (95,107]  (83,95]   (107,119] (95,107]  (83,95]  
 [428] (83,95]   (95,107]  (83,95]   (95,107]  (95,107]  (95,107]  (70.9,83]
 [435] (83,95]   (95,107]  (119,131] (95,107]  (107,119] (83,95]   (83,95]  
 [442] (83,95]   (83,95]   (95,107]  (83,95]   (70.9,83] (70.9,83] (83,95]  
 [449] (95,107]  (95,107]  (107,119] (70.9,83] (95,107]  (83,95]   (95,107] 
 [456] (83,95]   (83,95]   (83,95]   (83,95]   (83,95]   (95,107]  (83,95]  
 [463] (70.9,83] (95,107]  (95,107]  (95,107]  (95,107]  (95,107]  (107,119]
 [470] (95,107]  (95,107]  (83,95]   (83,95]   (95,107]  (83,95]   (83,95]  
 [477] (83,95]   (95,107]  (95,107]  (83,95]   (83,95]   (107,119] (107,119]
 [484] (95,107]  (83,95]   (70.9,83] (70.9,83] (83,95]   (95,107]  (95,107] 
 [491] (95,107]  (95,107]  (95,107]  (95,107]  (70.9,83] (107,119] (95,107] 
 [498] (95,107]  (107,119] (107,119] (107,119] (95,107]  (70.9,83] (95,107] 
 [505] (95,107]  (70.9,83] (70.9,83] (95,107]  (95,107]  (83,95]   (95,107] 
 [512] (107,119] (95,107]  (95,107]  (95,107]  (95,107]  (119,131] (107,119]
 [519] (83,95]   (107,119] (83,95]   (107,119] (83,95]   (83,95]   (83,95]  
 [526] (95,107]  (95,107]  (107,119] (95,107]  (83,95]   (70.9,83] (95,107] 
 [533] (107,119] (95,107]  (83,95]   (119,131] (95,107]  (95,107]  (70.9,83]
 [540] (119,131] (83,95]   (83,95]   (83,95]   (83,95]   (83,95]   (95,107] 
 [547] (107,119] (83,95]   (83,95]   (119,131] (83,95]   (83,95]   (95,107] 
 [554] (107,119] (95,107]  (95,107]  (107,119] (70.9,83] (83,95]   (95,107] 
 [561] (95,107]  (83,95]   (95,107]  (83,95]   (119,131] (119,131] (83,95]  
 [568] (95,107]  (83,95]   (83,95]   (107,119] (95,107]  (95,107]  (95,107] 
 [575] (107,119] (107,119] (95,107]  (95,107]  (83,95]   (95,107]  (119,131]
 [582] (70.9,83] (83,95]   (70.9,83] (107,119] (95,107]  (83,95]   (95,107] 
 [589] (95,107]  (107,119] (95,107]  (95,107]  (95,107]  (107,119] (95,107] 
 [596] (119,131] (95,107]  (95,107]  (95,107]  (83,95]   (70.9,83] (95,107] 
 [603] (95,107]  (107,119] (95,107]  (95,107]  (107,119] (83,95]   (95,107] 
 [610] (107,119] (70.9,83] (70.9,83] (95,107]  (119,131] (83,95]   (83,95]  
 [617] (83,95]   (95,107]  (83,95]   (83,95]   (95,107]  (119,131] (107,119]
 [624] (95,107]  (95,107]  (95,107]  (95,107]  (107,119] (95,107]  (83,95]  
 [631] (95,107]  (107,119] (70.9,83] (83,95]   (107,119] (95,107]  (95,107] 
 [638] (95,107]  (70.9,83] (107,119] (95,107]  (83,95]   (107,119] (95,107] 
 [645] (83,95]   (83,95]   (95,107]  (70.9,83] (83,95]   (95,107]  (107,119]
 [652] (107,119] (83,95]   (95,107]  (95,107]  (95,107]  (95,107]  (83,95]  
 [659] (83,95]   (83,95]   (95,107]  (107,119] (95,107]  (83,95]   (95,107] 
 [666] (107,119] (119,131] (95,107]  (83,95]   (107,119] (83,95]   (107,119]
 [673] (95,107]  (83,95]   (95,107]  (107,119] (107,119] (83,95]   (83,95]  
 [680] (83,95]   (83,95]   (83,95]   (95,107]  (83,95]   (83,95]   (107,119]
 [687] (95,107]  (83,95]   (95,107]  (83,95]   (95,107]  (83,95]   (83,95]  
 [694] (83,95]   (70.9,83] (95,107]  (83,95]   (95,107]  (95,107]  (95,107] 
 [701] (95,107]  (107,119] (95,107]  (70.9,83] (95,107]  (83,95]   (107,119]
 [708] (107,119] (95,107]  (95,107]  (83,95]   (83,95]   (95,107]  (95,107] 
 [715] (95,107]  (107,119] (95,107]  (83,95]   (83,95]   (107,119] (83,95]  
 [722] (70.9,83] (95,107]  (83,95]   (95,107]  (70.9,83] (83,95]   (107,119]
 [729] (83,95]   (107,119] (70.9,83] (107,119] (107,119] (95,107]  (95,107] 
 [736] (95,107]  (95,107]  (95,107]  (107,119] (95,107]  (83,95]   (83,95]  
 [743] (95,107]  (107,119] (95,107]  (83,95]   (95,107]  (95,107]  (95,107] 
 [750] (95,107]  (107,119] (95,107]  (70.9,83] (83,95]   (95,107]  (95,107] 
 [757] (119,131] (95,107]  (95,107]  (95,107]  (70.9,83] (119,131] (107,119]
 [764] (83,95]   (83,95]   (95,107]  (95,107]  (95,107]  (95,107]  (95,107] 
 [771] (107,119] (83,95]   (95,107]  (95,107]  (83,95]   (119,131] (83,95]  
 [778] (83,95]   (83,95]   (95,107]  (95,107]  (107,119] (83,95]   (83,95]  
 [785] (107,119] (107,119] (83,95]   (95,107]  (83,95]   (95,107]  (83,95]  
 [792] (95,107]  (95,107]  (83,95]   (83,95]   (83,95]   (95,107]  (107,119]
 [799] (119,131] (83,95]   (83,95]   (95,107]  (95,107]  (95,107]  (95,107] 
 [806] (83,95]   (95,107]  (95,107]  (83,95]   (83,95]   (70.9,83] (70.9,83]
 [813] (107,119] (83,95]   (95,107]  (107,119] (83,95]   (95,107]  (83,95]  
 [820] (107,119] (95,107]  (83,95]   (83,95]   (95,107]  (95,107]  (95,107] 
 [827] (83,95]   (95,107]  (83,95]   (95,107]  (107,119] (70.9,83] (119,131]
 [834] (83,95]   (107,119] (95,107]  (107,119] (107,119] (83,95]   (83,95]  
 [841] (95,107]  (83,95]   (95,107]  (83,95]   (95,107]  (107,119] (95,107] 
 [848] (95,107]  (83,95]   (107,119] (95,107]  (83,95]   (95,107]  (95,107] 
 [855] (83,95]   (95,107]  (107,119] (83,95]   (95,107]  (95,107]  (107,119]
 [862] (107,119] (95,107]  (83,95]   (107,119] (83,95]   (95,107]  (95,107] 
 [869] (83,95]   (83,95]   (95,107]  (83,95]   (95,107]  (95,107]  (95,107] 
 [876] (95,107]  (83,95]   (95,107]  (95,107]  (83,95]   (83,95]   (107,119]
 [883] (95,107]  (95,107]  (83,95]   (83,95]   (107,119] (95,107]  (95,107] 
 [890] (83,95]   (95,107]  (95,107]  (83,95]   (95,107]  (95,107]  (95,107] 
 [897] (95,107]  (95,107]  (95,107]  (83,95]   (107,119] (95,107]  (107,119]
 [904] (95,107]  (107,119] (95,107]  (83,95]   (70.9,83] (83,95]   (107,119]
 [911] (83,95]   (95,107]  (83,95]   (83,95]   (83,95]   (107,119] (83,95]  
 [918] (95,107]  (107,119] (83,95]   (83,95]   (95,107]  (95,107]  (107,119]
 [925] (83,95]   (95,107]  (83,95]   (95,107]  (83,95]   (83,95]   (83,95]  
 [932] (83,95]   (95,107]  (95,107]  (95,107]  (95,107]  (95,107]  (107,119]
 [939] (83,95]   (95,107]  (107,119] (95,107]  (95,107]  (95,107]  (95,107] 
 [946] (95,107]  (107,119] (83,95]   (95,107]  (83,95]   (95,107]  (70.9,83]
 [953] (83,95]   (83,95]   (107,119] (95,107]  (107,119] (119,131] (95,107] 
 [960] (107,119] (107,119] (95,107]  (95,107]  (70.9,83] (83,95]   (83,95]  
 [967] (83,95]   (95,107]  (83,95]   (95,107]  (107,119] (95,107]  (107,119]
 [974] (95,107]  (83,95]   (83,95]   (107,119] (83,95]   (95,107]  (70.9,83]
 [981] (83,95]   (83,95]   (83,95]   (83,95]   (95,107]  (95,107]  (83,95]  
 [988] (83,95]   (107,119] (107,119] (83,95]   (83,95]   (95,107]  (107,119]
 [995] (95,107]  (95,107]  (107,119] (95,107]  (83,95]   (95,107] 
Levels: (70.9,83] (83,95] (95,107] (107,119] (119,131]

wakefield documentation built on May 19, 2018, 5:04 p.m.