fishR-Core-Team / FSA

FSA (Fisheries Stock Assessment) package provides R functions to conduct typical introductory fisheries analyses.
https://fishr-core-team.github.io/FSA/
GNU General Public License v2.0
66 stars 22 forks source link

mode() v. class() issues #21

Closed droglenc closed 8 years ago

droglenc commented 8 years ago

Consider changing the class()es returned by iHndlFormula() to mode()s. An example problem occurs with the following where hist.formula() does not recognize the result as numeric because it checks the class (i.e., array) and not the mode (i.e., numeric).

res <- combn(2:9,2,mean)
hist(~res,w=0.5)
droglenc commented 8 years ago

Modified iHndlFormula() for the single variable case where an array was sent. This addresses this simple example.