Description Usage Arguments Details Value Examples
View source: R/ParseNetlogoData.R
In Pheno-Evo experiments, it is common to store all the values from all agents for a particular variable at each given timepoint. In the resulting Netlogo data table, those values all go into a single entry of the table at each timepoint. [parsenumeric()] can be used to split up those values and export them into a new dataframe - specifically, it returns a histogram of the values.
1 | parsenumeric(charstring)
|
charstring |
The full character string from one entry of a NetLogo data table, including brackets and quotation marks. |
In general, the normal Pheno-Evo user should not have to use this function. It is called by several other functions used for analyzing Pheno-Evo output data, such as [calc.fun.div()] and [phenotype.histogram()]. For a function that returns the vector of numbers and does not calculate density, see [extractnumeric()]. For a function that returns the values as factors rather than numeric, see [parsefactors.norm()].
A dataframe with a single column named s4, giving population density estimates across the range of the trait value from 0 and 1.00 in bins of width 0.01.
1 2 3 | data(PE.ends)
PE.ends$degrade.rate[4]
parsenumeric(PE.ends$degrade.rate[4])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.