Description Usage Arguments Details Value See Also Examples
Sample a population dataset using PopGen.
1 | generate_population(parameters, silent = FALSE)
|
parameters |
Inputs that describe the target population |
silent |
Whether or not to print activity messages during the call |
Use of this API requires an active account on the PopGen web site.
The returned object consists either of an XML document fragment containing the generated population, or one or more error messages.
A structure containing data returned by the PopGen service.
Query outcome of service call with generate_succeeded
. Retrieve results with extract_individuals
.
1 2 3 4 5 6 7 8 9 10 11 | # Set PopGen account name
parameters <- list(
PopGenUserName = "kevin.soandso@some.sci.org",
PopulationSize = 100
)
# Add typical values for other inputs
parameters <- apply_defaults(parameters)
# Call web service
pop_gen_out <- generate_population(parameters)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.