| tidy.fieldopt_multi_allocation | R Documentation |
tidy() returns one row per stratum, frame or stage; glance() one row
with the totals.
## S3 method for class 'fieldopt_multi_allocation'
tidy(x, ...)
## S3 method for class 'fieldopt_multi_allocation'
glance(x, ...)
## S3 method for class 'fieldopt_allocation'
tidy(x, ...)
## S3 method for class 'fieldopt_allocation'
glance(x, ...)
## S3 method for class 'fieldopt_dual_frame'
tidy(x, ...)
## S3 method for class 'fieldopt_dual_frame'
glance(x, ...)
## S3 method for class 'fieldopt_two_stage'
tidy(x, ...)
## S3 method for class 'fieldopt_two_stage'
glance(x, ...)
x |
A |
... |
Unused. |
A tibble.
strata <- data.frame(
stratum = c("list", "area"), size = c(2000, 800),
sd = c(12, 30), cost = c(40, 180)
)
a <- frame_allocation(strata, budget = 20000)
tidy(a)
glance(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.