Description Usage Arguments Value See Also Examples
Generate a random vector of ages within the provided range. The default age range is set between 18 and 89, to match the age ranges which appear (see e.g., https://gssdataexplorer.norc.org/variables/53/vshow).
1 |
n |
The number elements to generate. This can be globally set within
the environment of |
x |
A vector of elements to chose from. |
prob |
A vector of probabilities to chose from. |
name |
The name to assign to the output vector's |
Returns a random integer vector of ages within the provided range (defaults to 18:89).
Other variable functions:
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(),
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()
1 2 3 |

[1] 34 36 84 45 52 30 41 62 43 44
[1] (41.7,65.3] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1] (41.7,65.3]
[7] (41.7,65.3] (65.3,89.1] (17.9,41.7] (41.7,65.3] (17.9,41.7] (17.9,41.7]
[13] (65.3,89.1] (65.3,89.1] (65.3,89.1] (65.3,89.1] (41.7,65.3] (65.3,89.1]
[19] (65.3,89.1] (41.7,65.3] (41.7,65.3] (65.3,89.1] (65.3,89.1] (17.9,41.7]
[25] (65.3,89.1] (65.3,89.1] (17.9,41.7] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[31] (65.3,89.1] (65.3,89.1] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[37] (17.9,41.7] (65.3,89.1] (41.7,65.3] (17.9,41.7] (41.7,65.3] (65.3,89.1]
[43] (41.7,65.3] (65.3,89.1] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7]
[49] (41.7,65.3] (65.3,89.1] (41.7,65.3] (65.3,89.1] (17.9,41.7] (17.9,41.7]
[55] (65.3,89.1] (17.9,41.7] (17.9,41.7] (17.9,41.7] (41.7,65.3] (65.3,89.1]
[61] (41.7,65.3] (17.9,41.7] (17.9,41.7] (41.7,65.3] (17.9,41.7] (17.9,41.7]
[67] (17.9,41.7] (65.3,89.1] (65.3,89.1] (17.9,41.7] (41.7,65.3] (65.3,89.1]
[73] (41.7,65.3] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[79] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[85] (65.3,89.1] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1]
[91] (41.7,65.3] (41.7,65.3] (17.9,41.7] (41.7,65.3] (65.3,89.1] (65.3,89.1]
[97] (17.9,41.7] (65.3,89.1] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7]
[103] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[109] (41.7,65.3] (41.7,65.3] (41.7,65.3] (41.7,65.3] (65.3,89.1] (65.3,89.1]
[115] (65.3,89.1] (65.3,89.1] (41.7,65.3] (41.7,65.3] (41.7,65.3] (65.3,89.1]
[121] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[127] (41.7,65.3] (65.3,89.1] (41.7,65.3] (41.7,65.3] (17.9,41.7] (41.7,65.3]
[133] (41.7,65.3] (65.3,89.1] (65.3,89.1] (17.9,41.7] (41.7,65.3] (17.9,41.7]
[139] (65.3,89.1] (41.7,65.3] (41.7,65.3] (17.9,41.7] (17.9,41.7] (17.9,41.7]
[145] (17.9,41.7] (41.7,65.3] (65.3,89.1] (17.9,41.7] (17.9,41.7] (65.3,89.1]
[151] (17.9,41.7] (41.7,65.3] (17.9,41.7] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[157] (17.9,41.7] (41.7,65.3] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[163] (17.9,41.7] (65.3,89.1] (65.3,89.1] (17.9,41.7] (17.9,41.7] (41.7,65.3]
[169] (65.3,89.1] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[175] (65.3,89.1] (41.7,65.3] (65.3,89.1] (65.3,89.1] (17.9,41.7] (41.7,65.3]
[181] (41.7,65.3] (17.9,41.7] (41.7,65.3] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[187] (41.7,65.3] (65.3,89.1] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[193] (65.3,89.1] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1] (17.9,41.7]
[199] (65.3,89.1] (41.7,65.3] (41.7,65.3] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[205] (17.9,41.7] (65.3,89.1] (41.7,65.3] (65.3,89.1] (41.7,65.3] (65.3,89.1]
[211] (65.3,89.1] (65.3,89.1] (41.7,65.3] (41.7,65.3] (17.9,41.7] (41.7,65.3]
[217] (65.3,89.1] (41.7,65.3] (17.9,41.7] (17.9,41.7] (65.3,89.1] (41.7,65.3]
[223] (65.3,89.1] (65.3,89.1] (41.7,65.3] (65.3,89.1] (41.7,65.3] (17.9,41.7]
[229] (65.3,89.1] (41.7,65.3] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7]
[235] (41.7,65.3] (65.3,89.1] (65.3,89.1] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[241] (17.9,41.7] (65.3,89.1] (41.7,65.3] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[247] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3] (65.3,89.1] (41.7,65.3]
[253] (17.9,41.7] (17.9,41.7] (41.7,65.3] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[259] (65.3,89.1] (65.3,89.1] (65.3,89.1] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[265] (65.3,89.1] (41.7,65.3] (17.9,41.7] (65.3,89.1] (17.9,41.7] (41.7,65.3]
[271] (17.9,41.7] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3] (41.7,65.3]
[277] (65.3,89.1] (65.3,89.1] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[283] (17.9,41.7] (41.7,65.3] (65.3,89.1] (65.3,89.1] (41.7,65.3] (17.9,41.7]
[289] (65.3,89.1] (17.9,41.7] (65.3,89.1] (41.7,65.3] (17.9,41.7] (65.3,89.1]
[295] (41.7,65.3] (17.9,41.7] (65.3,89.1] (17.9,41.7] (65.3,89.1] (65.3,89.1]
[301] (65.3,89.1] (65.3,89.1] (17.9,41.7] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[307] (17.9,41.7] (65.3,89.1] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3]
[313] (65.3,89.1] (41.7,65.3] (17.9,41.7] (41.7,65.3] (17.9,41.7] (17.9,41.7]
[319] (17.9,41.7] (65.3,89.1] (41.7,65.3] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[325] (17.9,41.7] (65.3,89.1] (65.3,89.1] (17.9,41.7] (17.9,41.7] (65.3,89.1]
[331] (65.3,89.1] (41.7,65.3] (65.3,89.1] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[337] (17.9,41.7] (17.9,41.7] (17.9,41.7] (65.3,89.1] (65.3,89.1] (17.9,41.7]
[343] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[349] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1]
[355] (65.3,89.1] (17.9,41.7] (17.9,41.7] (65.3,89.1] (17.9,41.7] (41.7,65.3]
[361] (17.9,41.7] (65.3,89.1] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[367] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3] (41.7,65.3]
[373] (65.3,89.1] (41.7,65.3] (17.9,41.7] (17.9,41.7] (41.7,65.3] (17.9,41.7]
[379] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[385] (17.9,41.7] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[391] (17.9,41.7] (65.3,89.1] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1]
[397] (41.7,65.3] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[403] (41.7,65.3] (65.3,89.1] (65.3,89.1] (41.7,65.3] (65.3,89.1] (65.3,89.1]
[409] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[415] (41.7,65.3] (41.7,65.3] (41.7,65.3] (17.9,41.7] (41.7,65.3] (17.9,41.7]
[421] (17.9,41.7] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3] (65.3,89.1]
[427] (65.3,89.1] (65.3,89.1] (65.3,89.1] (41.7,65.3] (41.7,65.3] (65.3,89.1]
[433] (65.3,89.1] (41.7,65.3] (17.9,41.7] (65.3,89.1] (17.9,41.7] (17.9,41.7]
[439] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7] (17.9,41.7] (65.3,89.1]
[445] (17.9,41.7] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3] (65.3,89.1]
[451] (17.9,41.7] (65.3,89.1] (17.9,41.7] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[457] (41.7,65.3] (65.3,89.1] (65.3,89.1] (41.7,65.3] (65.3,89.1] (65.3,89.1]
[463] (65.3,89.1] (17.9,41.7] (65.3,89.1] (17.9,41.7] (65.3,89.1] (17.9,41.7]
[469] (65.3,89.1] (65.3,89.1] (65.3,89.1] (65.3,89.1] (65.3,89.1] (17.9,41.7]
[475] (41.7,65.3] (17.9,41.7] (65.3,89.1] (17.9,41.7] (65.3,89.1] (65.3,89.1]
[481] (65.3,89.1] (41.7,65.3] (65.3,89.1] (41.7,65.3] (17.9,41.7] (65.3,89.1]
[487] (65.3,89.1] (41.7,65.3] (17.9,41.7] (17.9,41.7] (41.7,65.3] (65.3,89.1]
[493] (17.9,41.7] (41.7,65.3] (65.3,89.1] (41.7,65.3] (17.9,41.7] (65.3,89.1]
[499] (17.9,41.7] (17.9,41.7] (65.3,89.1] (65.3,89.1] (17.9,41.7] (65.3,89.1]
[505] (41.7,65.3] (65.3,89.1] (17.9,41.7] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[511] (17.9,41.7] (17.9,41.7] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3]
[517] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7] (65.3,89.1]
[523] (65.3,89.1] (41.7,65.3] (41.7,65.3] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[529] (41.7,65.3] (65.3,89.1] (17.9,41.7] (41.7,65.3] (17.9,41.7] (65.3,89.1]
[535] (17.9,41.7] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3] (65.3,89.1]
[541] (41.7,65.3] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[547] (41.7,65.3] (41.7,65.3] (17.9,41.7] (17.9,41.7] (41.7,65.3] (17.9,41.7]
[553] (17.9,41.7] (41.7,65.3] (17.9,41.7] (17.9,41.7] (17.9,41.7] (65.3,89.1]
[559] (17.9,41.7] (65.3,89.1] (41.7,65.3] (41.7,65.3] (65.3,89.1] (41.7,65.3]
[565] (17.9,41.7] (65.3,89.1] (41.7,65.3] (17.9,41.7] (65.3,89.1] (41.7,65.3]
[571] (41.7,65.3] (41.7,65.3] (41.7,65.3] (65.3,89.1] (17.9,41.7] (17.9,41.7]
[577] (41.7,65.3] (17.9,41.7] (65.3,89.1] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[583] (65.3,89.1] (65.3,89.1] (17.9,41.7] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[589] (17.9,41.7] (41.7,65.3] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[595] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[601] (41.7,65.3] (17.9,41.7] (41.7,65.3] (65.3,89.1] (41.7,65.3] (41.7,65.3]
[607] (17.9,41.7] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3] (17.9,41.7]
[613] (41.7,65.3] (41.7,65.3] (17.9,41.7] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[619] (17.9,41.7] (41.7,65.3] (17.9,41.7] (17.9,41.7] (65.3,89.1] (41.7,65.3]
[625] (41.7,65.3] (65.3,89.1] (17.9,41.7] (17.9,41.7] (17.9,41.7] (41.7,65.3]
[631] (17.9,41.7] (17.9,41.7] (65.3,89.1] (17.9,41.7] (41.7,65.3] (65.3,89.1]
[637] (17.9,41.7] (41.7,65.3] (17.9,41.7] (17.9,41.7] (17.9,41.7] (65.3,89.1]
[643] (17.9,41.7] (17.9,41.7] (41.7,65.3] (17.9,41.7] (17.9,41.7] (17.9,41.7]
[649] (17.9,41.7] (65.3,89.1] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[655] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[661] (65.3,89.1] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7] (41.7,65.3]
[667] (17.9,41.7] (65.3,89.1] (17.9,41.7] (41.7,65.3] (17.9,41.7] (41.7,65.3]
[673] (17.9,41.7] (17.9,41.7] (65.3,89.1] (41.7,65.3] (17.9,41.7] (41.7,65.3]
[679] (17.9,41.7] (65.3,89.1] (17.9,41.7] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[685] (41.7,65.3] (65.3,89.1] (41.7,65.3] (65.3,89.1] (41.7,65.3] (65.3,89.1]
[691] (41.7,65.3] (41.7,65.3] (65.3,89.1] (41.7,65.3] (17.9,41.7] (65.3,89.1]
[697] (65.3,89.1] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3] (17.9,41.7]
[703] (41.7,65.3] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7] (65.3,89.1]
[709] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7] (41.7,65.3] (17.9,41.7]
[715] (17.9,41.7] (41.7,65.3] (65.3,89.1] (65.3,89.1] (41.7,65.3] (65.3,89.1]
[721] (17.9,41.7] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3] (41.7,65.3]
[727] (17.9,41.7] (65.3,89.1] (17.9,41.7] (41.7,65.3] (17.9,41.7] (41.7,65.3]
[733] (17.9,41.7] (65.3,89.1] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7]
[739] (41.7,65.3] (17.9,41.7] (17.9,41.7] (65.3,89.1] (17.9,41.7] (65.3,89.1]
[745] (65.3,89.1] (17.9,41.7] (17.9,41.7] (17.9,41.7] (41.7,65.3] (17.9,41.7]
[751] (65.3,89.1] (17.9,41.7] (41.7,65.3] (65.3,89.1] (17.9,41.7] (17.9,41.7]
[757] (41.7,65.3] (41.7,65.3] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3]
[763] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7] (17.9,41.7] (41.7,65.3]
[769] (41.7,65.3] (41.7,65.3] (65.3,89.1] (17.9,41.7] (41.7,65.3] (65.3,89.1]
[775] (41.7,65.3] (17.9,41.7] (65.3,89.1] (41.7,65.3] (65.3,89.1] (41.7,65.3]
[781] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1] (65.3,89.1] (17.9,41.7]
[787] (65.3,89.1] (17.9,41.7] (17.9,41.7] (41.7,65.3] (65.3,89.1] (41.7,65.3]
[793] (17.9,41.7] (17.9,41.7] (65.3,89.1] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[799] (17.9,41.7] (41.7,65.3] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1]
[805] (41.7,65.3] (17.9,41.7] (17.9,41.7] (41.7,65.3] (17.9,41.7] (41.7,65.3]
[811] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1] (65.3,89.1] (17.9,41.7]
[817] (41.7,65.3] (17.9,41.7] (65.3,89.1] (41.7,65.3] (65.3,89.1] (41.7,65.3]
[823] (41.7,65.3] (65.3,89.1] (41.7,65.3] (41.7,65.3] (65.3,89.1] (41.7,65.3]
[829] (41.7,65.3] (41.7,65.3] (41.7,65.3] (17.9,41.7] (65.3,89.1] (41.7,65.3]
[835] (17.9,41.7] (41.7,65.3] (65.3,89.1] (17.9,41.7] (65.3,89.1] (17.9,41.7]
[841] (65.3,89.1] (17.9,41.7] (41.7,65.3] (41.7,65.3] (65.3,89.1] (41.7,65.3]
[847] (41.7,65.3] (65.3,89.1] (41.7,65.3] (17.9,41.7] (41.7,65.3] (65.3,89.1]
[853] (17.9,41.7] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3] (41.7,65.3]
[859] (65.3,89.1] (17.9,41.7] (65.3,89.1] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[865] (65.3,89.1] (41.7,65.3] (65.3,89.1] (65.3,89.1] (17.9,41.7] (41.7,65.3]
[871] (41.7,65.3] (41.7,65.3] (65.3,89.1] (41.7,65.3] (41.7,65.3] (65.3,89.1]
[877] (41.7,65.3] (41.7,65.3] (41.7,65.3] (65.3,89.1] (41.7,65.3] (65.3,89.1]
[883] (41.7,65.3] (41.7,65.3] (41.7,65.3] (65.3,89.1] (41.7,65.3] (17.9,41.7]
[889] (41.7,65.3] (65.3,89.1] (17.9,41.7] (41.7,65.3] (41.7,65.3] (65.3,89.1]
[895] (41.7,65.3] (17.9,41.7] (65.3,89.1] (17.9,41.7] (17.9,41.7] (65.3,89.1]
[901] (17.9,41.7] (65.3,89.1] (17.9,41.7] (17.9,41.7] (17.9,41.7] (17.9,41.7]
[907] (17.9,41.7] (17.9,41.7] (41.7,65.3] (41.7,65.3] (17.9,41.7] (41.7,65.3]
[913] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1] (17.9,41.7] (17.9,41.7]
[919] (17.9,41.7] (17.9,41.7] (65.3,89.1] (41.7,65.3] (65.3,89.1] (17.9,41.7]
[925] (17.9,41.7] (41.7,65.3] (41.7,65.3] (65.3,89.1] (17.9,41.7] (65.3,89.1]
[931] (65.3,89.1] (17.9,41.7] (17.9,41.7] (65.3,89.1] (17.9,41.7] (41.7,65.3]
[937] (17.9,41.7] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1] (17.9,41.7]
[943] (17.9,41.7] (17.9,41.7] (41.7,65.3] (65.3,89.1] (65.3,89.1] (65.3,89.1]
[949] (41.7,65.3] (65.3,89.1] (65.3,89.1] (17.9,41.7] (41.7,65.3] (41.7,65.3]
[955] (17.9,41.7] (65.3,89.1] (41.7,65.3] (17.9,41.7] (17.9,41.7] (17.9,41.7]
[961] (65.3,89.1] (17.9,41.7] (41.7,65.3] (17.9,41.7] (65.3,89.1] (65.3,89.1]
[967] (41.7,65.3] (17.9,41.7] (17.9,41.7] (65.3,89.1] (65.3,89.1] (41.7,65.3]
[973] (65.3,89.1] (17.9,41.7] (65.3,89.1] (41.7,65.3] (41.7,65.3] (65.3,89.1]
[979] (65.3,89.1] (65.3,89.1] (17.9,41.7] (17.9,41.7] (65.3,89.1] (17.9,41.7]
[985] (41.7,65.3] (17.9,41.7] (65.3,89.1] (65.3,89.1] (17.9,41.7] (65.3,89.1]
[991] (65.3,89.1] (65.3,89.1] (65.3,89.1] (17.9,41.7] (65.3,89.1] (65.3,89.1]
[997] (17.9,41.7] (41.7,65.3] (17.9,41.7] (17.9,41.7]
Levels: (17.9,41.7] (41.7,65.3] (65.3,89.1]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.