parsenumeric: Histogram from the numeric values from a single cell of a...

Description Usage Arguments Details Value Examples

View source: R/ParseNetlogoData.R

Description

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.

Usage

1
parsenumeric(charstring)

Arguments

charstring

The full character string from one entry of a NetLogo data table, including brackets and quotation marks.

Details

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()].

Value

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.

Examples

1
2
3
data(PE.ends)
PE.ends$degrade.rate[4]
parsenumeric(PE.ends$degrade.rate[4])

jessicaaudreylee/PhenoEvoR documentation built on Sept. 7, 2020, 3:50 a.m.