parametersDataframe {virtualPollen}R Documentation

Generates a template dataframe to contain simulation parameters.

Description

Generates the dataframe structure needed to contain the parameters used as input for the simulatePopulation function.

Usage

parametersDataframe(rows=1)

Arguments

rows

integer, number of rows in the output dataframe.

Details

The resulting dataframe can either be filled manually through vectors, as shown in the example (but this requires to use the function fixParametersTypes once the dataframe is completed), or can be edited manually in Rstudio by installing the editData package.

Value

A dataframe filled with NA values and the columns:

Author(s)

Blas M. Benito <blasbenito@gmail.com>

See Also

simulatePopulation, fixParametersTypes

Examples


#generating the template
parameters <- parametersDataframe(rows=1)

#filling it with a vector
parameters[1,] <- c("Species 1", 50, 20, 2, 0.2, 0, 100, 1000, 1, 0, 50, 10, 0, 0, 600, 600)


[Package virtualPollen version 1.0.1 Index]