tjthurman / BAHZ

An R package for Bayesian analysis of hybrid zones
GNU General Public License v3.0
3 stars 1 forks source link

Allow negative values in prior specifications #35

Closed tjthurman closed 5 years ago

tjthurman commented 5 years ago

Alternative strategy to current method: (1) take the whole string of the appropriate part (for first ( to comma; for last comma to ); for only ( to ). (2) strip out all whitespace and special characters with the stringr functions, leaving only numbers, decimals, and minus signs, (3) make sure there's only 1 decimal, (4) run as.numeric().