rpin | R Documentation |
pin
A function that generates random pin
s (see as.pin
).
The generated pin
is uniformely distributed over the time period.
rpin(
n,
start_date = "1900-01-01",
end_date = Sys.Date(),
p.male = 0.5,
p.coordn = 0.1
)
n |
number of observations. If |
start_date |
Smallest possible |
end_date |
Largest possible |
p.male |
Proportion of males. Default is 0.5. |
p.coordn |
Proportion of coordination numbers. Default is 0.1. |
a vector of generated pin
s.
x <- rpin(3)
pin_ctrl(x)
pin_sex(x)
pin_age(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.