Description Usage Arguments Details Value See Also Examples
Generate a random vector of races.
1 2 3 4 5 6 7 |
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 |
The races and probabilities used match approximate U.S. racial make-up. The default make up is:
Race | Percent |
White | 63.70 % |
Hispanic | 16.30 % |
Black | 12.20 % |
Asian | 4.70 % |
Bi-Racial | 1.90 % |
Native | .70 % |
Other | .20 % |
Hawaiian | .15 % |
Returns a random factor vector of elements.
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()
,
iq()
,
language
,
level()
,
likert()
,
lorem_ipsum()
,
marital()
,
military()
,
month()
,
name
,
normal()
,
political()
,
religion()
,
sat()
,
sentence()
,
sex_inclusive()
,
sex()
,
smokes()
,
speed()
,
state()
,
string()
,
upper()
,
valid()
,
year()
,
zip_code()
1 2 |
[1] Black White White Hispanic White Native White White
[9] White Black
Levels: White Hispanic Black Asian Bi-Racial Native Other Hawaiian
White Hispanic Black Asian Bi-Racial Native Other Hawaiian
63.99 15.83 12.39 4.97 1.85 0.67 0.20 0.10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.