Table. Standard distributions with R core name
| Beta |
beta |
shape1, shape2 |
|
| Binomial |
binom |
size, prob |
|
| Cauchy |
cauchy |
location, scale |
0, 1 |
| Chi-square |
chisq |
df |
|
| Exponential |
exp |
1/mean |
1 |
| Fisher |
f |
df1, df2 |
|
| Gamma |
gamma |
shape, 1/scale |
NA, 1 |
| Geometric |
geom |
prob |
|
| Hypergeometric |
hyper |
m, n, k |
|
| Log-Normal |
lnorm |
mean, sd |
0, 1 |
| Logistic |
logis |
location, scale |
0, 1 |
| Normal |
norm |
mean, sd |
0, 1 |
| Poisson |
pois |
lambda |
|
| Student |
t |
df |
|
| Uniform |
unif |
min, max |
0, 1 |
| Weibull |
weibull |
shape |
|
Definition of a data.frame
v1 = sample(1:12, 30, rep=T)
v2 = sample(LETTERS[1:10], 30, rep=T)
v3 = runif(30)
v4 = rnorm(30)
xx = data.frame(v1,v2,v3,v4)
head(xx)
## v1 v2 v3 v4
## 1 8 A 0.9923866 1.0747322
## 2 3 F 0.9754638 1.2871569
## 3 1 C 0.7131267 0.2295617
## 4 3 H 0.8572513 -0.1133185
## 5 12 A 0.7945930 1.2906446
## 6 4 H 0.7148859 0.1629720