Return the capabilities of a sampling method. Works for built-in
methods and methods added via register_method().
Arguments
- name
Method name (character string), as used by the sondage
dispatchers (e.g. "brewer", "cube", "srs").
Value
A list with elements type ("wor" or "wr"),
fixed_size (logical), and supports_prn (logical), or NULL
if the method is unknown.
Examples
method_spec("brewer")
#> $type
#> [1] "wor"
#>
#> $fixed_size
#> [1] TRUE
#>
#> $supports_prn
#> [1] FALSE
#>
method_spec("cube")
#> $type
#> [1] "wor"
#>
#> $fixed_size
#> [1] TRUE
#>
#> $supports_prn
#> [1] FALSE
#>
method_spec("nonexistent")
#> NULL