From b5a44ac544b03012ca5e0939effb91110ba149d0 Mon Sep 17 00:00:00 2001
From: Derek Ogle Changelog
FSA 0.9.2 12-Feb-21
filterD()
: REMOVED (to FSAmisc
).fitPlot()
: REMOVED (to FSAmisc
).fsaNews()
and FSANews()
: Removed.psdAdd()
: Modified. Changed the way PSDlit
was loaded into the function environment so that FSA::psdAdd()
will work. Addresses #85.PSDLit
: Modified. Added info for Utah Chub (from here; address #84).psdVal()
: Modified. Changed the way PSDlit
was loaded into the function environment so that FSA::psdVal()
will work. Addresses #85.residPlot()
: REMOVED (to FSAmisc
).wrAdd()
: Modified. Changed the way WSlit
was loaded into the function environment so that FSA::wrAdd()
will work. Addresses #85.WSLit
: Modified. Added info for Utah Chub (from here; address #84).FSA 0.9.0 8-
depletion()
: Modified. Changed to use iCheckConfLevel()
(which addresses #66).filterD()
: DEPRECATED (partially addresses #65).filterD()
: DEPRECATED (partially addresses #65).
fitPlot()
: DEPRECATED (partially addresses #65). Prior to that removed use of chooseColors()
(see above).fitPlot()
: DEPRECATED (partially addresses #65). Prior to that removed use of chooseColors()
(see above).
diags()
: REMOVED (moved to FSAmisc
). Added to FSA-defunct
. Partially addresses #65.FSA 0.9.0 8-
removal()
: Modified. Added check and then warning if non-whole numbers are in catch=
(addresses #60). Also modified checks of data integrity to be more robust (e.g., if a character vector is sent). Changed to use iCheckConfLevel()
(which addresses #66).residPlot()
: DEPRECATED (partially addresses #65). Prior to that removed use of chooseColors()
(see above).residPlot()
: DEPRECATED (partially addresses #65). Prior to that removed use of chooseColors()
(see above).
Subset()
: REMOVED. Added to FSA-defunct
. Partially addresses #65.FSA 0.8.3
hist.formula()
: Modified. Fixed bug with y-axes when freq=FALSE
is used (fixes #62; thanks to @carlostorrescubila).fitPlot()
: Modified. Fixed bugs with handling models that used character rather than factor variables.fitPlot()
: Modified. Fixed bugs with handling models that used character rather than factor variables.
plotBinResp()
: REMOVED. Removed as a user-facing function, but made as an internal function for continued use in fitPlot()
while fitPlot()
is deprecated.plotBinResp()
: REMOVED. Removed as a user-facing function, but made as an internal function for continued use in fitPlot()
while fitPlot()
is deprecated.
psdAdd()
: Modified. Fixed bug relate to species that were NA
(fixes #64; thanks to Dan Shoup). Added more tests and fixed some typos in the documentation.psdPlot()
: Modified. Fixed bug with box around the plot when add.psd=FALSE
. Added 5% expansion to top of y-axis so that bars did not run into the box.residPlot()
: Modified. Fixed bugs with handling models that used character rather than factor variables.residPlot()
: Modified. Fixed bugs with handling models that used character rather than factor variables.
FSA 0.8.31 7-Nov202020-11-08
@@ -204,7 +212,7 @@ FSA 0.8.29
FSA 0.8.28 28-Feb-20
fitPlot()
: Modified. Changed so that lines are plotted after the points in the IVR versions.fitPlot()
: Modified. Changed so that lines are plotted after the points in the IVR versions.
ksTest()
: Modified. Changed documentation examples to handle R’s new way of handling stringsAsFactors=
(per request from CRAN on 27-Feb-20).FSA 0.8.2
FSA 0.8.23 1-May-192019-05-02
testthat
folder as suggested in testthat
release notes.Subset()
(replaced with filterD()
).Subset()
(replaced with filterD()
).fitPlot()
: Modified. Fixed bug related to y-axis limits not extending to contain the data, confidence bands, or prediction bands (in fitPlot.slr()
). This addresses #3 listed for NCStats
).fitPlot()
: Modified. Fixed bug related to y-axis limits not extending to contain the data, confidence bands, or prediction bands (in fitPlot.slr()
). This addresses #3 listed for NCStats
).
hist.formula()
: Modified. Fixed bug related to subsequent calls after a call that used iaxs=FALSE
. This addresses #46.FSA 0.8.21
removal()
: Modified. Added method="Burhnam"
via the #51 from Powell Wheeler.residPlot()
: Modified. Changed to using withr::local_par()
(partially addresses #38).residPlot()
: Modified. Changed to using withr::local_par()
(partially addresses #38).
SMBassWB
: Modified. Fixed minor data entry error in row 383.FSA 0.8.19
psdAdd()
: Modified. Changed three 1:
structures to seq_len()
or seq_along()
(partially addressing #36).residPlot()
: Modified. Changed three 1:length()
structures to seq_along()
(partially addressing #36).residPlot()
: Modified. Changed three 1:length()
structures to seq_along()
(partially addressing #36).
Summarize()
: Modified. Changed one 1:length()
structure to seq_along()
(partially addressing #36).FSA 0.8.16
FSA 0.8.15 6-Sep-17
helpers
directory that will test that all required packages are installed.iAddOutlierTestResults()
: Modified. Fixed bug related to point labels in residPlot()
when the data.frame for the original model had NA
values.iAddOutlierTestResults()
: Modified. Fixed bug related to point labels in residPlot()
when the data.frame for the original model had NA
values.removal()
: Modified document by merging pull request #33.FSA 0.8.1
plotAB()
: Added. See description above for ageBias()
.plotBinResp()
: Modified. Changed how default transparency level is calculated and set the maximum transparency to 50 (changed from 500). Fixed bug in how the width of the proportions windows were calculated by default. These changes will affect fitPlot()
for logistic regression models.plotBinResp()
: Modified. Changed how default transparency level is calculated and set the maximum transparency to 50 (changed from 500). Fixed bug in how the width of the proportions windows were calculated by default. These changes will affect fitPlot()
for logistic regression models.
psdAdd()
: Modified. Changed some if()
s with class()
es to inherits()
.residPlot()
: Modified. Changed default for loess=
from TRUE
to FALSE
. Changed some if()
s with class()
es to inherits()
.residPlot()
: Modified. Changed default for loess=
from TRUE
to FALSE
. Changed some if()
s with class()
es to inherits()
.
wrAdd()
: Modified. Changed some if()
s with class()
es to inherits()
.FSA 0.8.1
expandLenFreq()
: Modified. Changed all message()
s to cat()
s. Removed “names” from printed items for a cleaner look.fitPlot()
: Modified. Added cex.leg=
and box.lty.leg=
to IVR plots.fitPlot()
: Modified. Added cex.leg=
and box.lty.leg=
to IVR plots.
hist.formula()
: Modified. Fixed a bug with adding the horizontal line at 0 when the user uses plot=FALSE
, which occurs with hist.bootCase()
.FSA 0.8.1
removal()
: Modified. Added a check and a returned error if method="Schnute"
and the last of three catches is zero (addresses #26) Fixed bug related to sending catches in a one column data.frame. Fixed bug related to selecting only one parm=
in confint()
. Added tests.residPlot()
: Modified. Added cex.leg=
and box.lty.leg=
to IVR plots. Removed extra spaces in main title if main="MODEL"
. Added some tests.residPlot()
: Modified. Added cex.leg=
and box.lty.leg=
to IVR plots. Removed extra spaces in main title if main="MODEL"
. Added some tests.
tictactoe()
: Modified. Changed used of iMakeColor()
to col2rgbt()
.FSA 0.8.8 1
FSA 0.8.7 8-May-162016-05-08
relax
from Suggests
. See srStarts()
and vbStarts()
notes below. This addresses #17.gdata
from Imports
. See filterD()
and Subset()
notes below. This addresses #5.ageKeyPlot()
, capHistSum()
, hist.formula()
, histFromSum()
, lwCompPreds()
, plot.agebias()
, plot.CatchCurve()
, plot.ChapmanRobson()
, plot.Depletion()
, plotBinResp()
, print.compSlopes()
, print.compIntercepts()
, print.metaM()
, psdPlot()
,residPlot()
, srModels()
, srStarts()
, and vbStarts()
.gdata
from Imports
. See filterD()
and Subset()
notes below. This addresses #5.ageKeyPlot()
, capHistSum()
, hist.formula()
, histFromSum()
, lwCompPreds()
, plot.agebias()
, plot.CatchCurve()
, plot.ChapmanRobson()
, plot.Depletion()
, plotBinResp()
, print.compSlopes()
, print.compIntercepts()
, print.metaM()
, psdPlot()
,residPlot()
, srModels()
, srStarts()
, and vbStarts()
.ageKey()
: Removed. Deprecated since 0.4.24. Use alkIndivAge()
.FSA 0.8.7 8-
capHistSum()
: Added tests.filterD()
: Modified. Changed to use droplevels()
from base
rather than drop.levels()
from gdata
. Added except=
.filterD()
: Modified. Changed to use droplevels()
from base
rather than drop.levels()
from gdata
. Added except=
.fitPlot()
: Modified. Changed the way colors, plotting characters, and line types were handled for most of the models. Should make their use more flexible. Fixed errors that occurred in IVR models when the factor variable preceded the covariate in the model (fixes #18). Started to add tests for error and warning messages.fitPlot()
: Modified. Changed the way colors, plotting characters, and line types were handled for most of the models. Should make their use more flexible. Fixed errors that occurred in IVR models when the factor variable preceded the covariate in the model (fixes #18). Started to add tests for error and warning messages.
GompertzFuns()
: Modified. Changed type=
to param=
.FSA 0.8.7 8-
LogisticModels()
: Removed. Replaced with growthFunShow()
.residPlot()
: Modified. Changed the way colors, plotting characters, and line types were handled for most of the models. Should make their use more flexible. Now matches coding in fitPlot()
. Fixed bug with main titling, but now asks user to decide if they want the model call or not. Started to add tests for error and warning messages.residPlot()
: Modified. Changed the way colors, plotting characters, and line types were handled for most of the models. Should make their use more flexible. Now matches coding in fitPlot()
. Fixed bug with main titling, but now asks user to decide if they want the model call or not. Started to add tests for error and warning messages.
RichardsFuns()
: Modified. Changed type=
to param=
.FSA 0.8.5 1
FSA 0.8.4 21-Dec-152015-12-21
requireNamespaces()
from some functions and moved those packages from Suggests
to Imports
so that those functions would work better with other packages. The only requireNamespaces()
that remain are related to functions that require the relax
package (so tcltk is not installed until needed) and knitr
, dunn.test
, and lmtest
as these are unlikely to be used by other packages and will keep the packages that are loaded with FSA
to a minimum. Packages moved from Suggests
to Depends
are Hmisc
(for use in binCI
), gdata
(for use in filterD()
and Subset()
), dplyr
(for use in filterD()
), sciplot
(for use in fitPlot()
), car
(for use in residPlot()
), and gplots
(for use with colors).requireNamespaces()
from some functions and moved those packages from Suggests
to Imports
so that those functions would work better with other packages. The only requireNamespaces()
that remain are related to functions that require the relax
package (so tcltk is not installed until needed) and knitr
, dunn.test
, and lmtest
as these are unlikely to be used by other packages and will keep the packages that are loaded with FSA
to a minimum. Packages moved from Suggests
to Depends
are Hmisc
(for use in binCI
), gdata
(for use in filterD()
and Subset()
), dplyr
(for use in filterD()
), sciplot
(for use in fitPlot()
), car
(for use in residPlot()
), and gplots
(for use with colors).addZeroCatch()
: Modified tests (to reduce warnings that were not part of tests).FSA 0.8.0 8-
fishR()
: Modified. Changed browseURL()
to utils::browseURL()
.fsaNews()
: Modified. Changed browseURL()
to utils::browseURL()
.fsaNews()
: Modified. Changed browseURL()
to utils::browseURL()
.
headtail()
: Modified. Changed head()
to utils::head()
and tail()
to utils::tail()
.FSA 0.7.4 Aug15
chooseColors()
: Modified. Check forgplots
with requireNamespaces()
before processing body of function. This allowed moving gplots
into Suggests
declarations rather than Imports
.filterD()
: Modified. Check for dplyr
and gdata
with requireNamespaces()
before processing body of function. This allowed moving dplyr
and gdata
into Suggests
declarations rather than Imports
.filterD()
: Modified. Check for dplyr
and gdata
with requireNamespaces()
before processing body of function. This allowed moving dplyr
and gdata
into Suggests
declarations rather than Imports
.
fitPlot()
: Modified. Check forsciplot
with requireNamespaces()
before adding intervals tot he plot. This allowed moving sciplot
into Suggests
declarations rather than Imports
.fitPlot()
: Modified. Check forsciplot
with requireNamespaces()
before adding intervals tot he plot. This allowed moving sciplot
into Suggests
declarations rather than Imports
.
lrt()
: Modified. Check forlmtest
with requireNamespaces()
before processing body of function. This allowed moving lmtest
into Suggests
declarations rather than Imports
.FSA 0.7.4 Aug15
purl2()
: Modified. Check forknitr
with requireNamespaces()
before processing body of function. This allowed moving knitr
into Suggests
declarations rather than Imports
.residPlot()
: Modified. Check forcar
with requireNamespaces()
before highlighting outliers on the plot. This allowed moving sciplot
into Suggests
declarations rather than Imports
.residPlot()
: Modified. Check forcar
with requireNamespaces()
before highlighting outliers on the plot. This allowed moving sciplot
into Suggests
declarations rather than Imports
.
srStarts()
: Modified. Check forrelax
with requireNamespaces()
before constructing the dynamic plot. This allowed moving relax
into Suggests
declarations rather than Imports
.FSA 0.6.23 Ju
ageBias()
: Modified. Fixed bugs related to axes on numbers plot and sunflower plot.filterD()
: Modified. Added reorder=FALSE
to drop.levels()
so that the order of levels is not changed when levels are dropped.filterD()
: Modified. Added reorder=FALSE
to drop.levels()
so that the order of levels is not changed when levels are dropped.residPlot.nlme()
: Added.residPlot.nlme()
: Added.
FSA 0.6.22 Jun15
@@ -1191,7 +1199,7 @@ FSA 0.6.16 Ju
fishR()
: Modfiied. Fixed bug with where="news"
. Added tests.fitPlot()
: Modified. Added ability to modify y-axis limits for the nonlinear regression model. Thanks to Gabriela N. for asking for this.fitPlot()
: Modified. Added ability to modify y-axis limits for the nonlinear regression model. Thanks to Gabriela N. for asking for this.
hoCoef()
: Modified. Changed lmobj=
to object=
, added degrees-of-freedom to the output matrix, streamlined the code, added some checks, and added some tests.FSA 0.6.14 Ma
fact2num()
: Modified. Added some checks with error messages. Added suite of tests.filterD()
: Modified. Changed to using drop.levels
from gdata
rather than droplevels
. Added a warning if the resultant data.frame has zero rows (same as in Subset
). Added some checks with error messages. Added suite of tests.filterD()
: Modified. Changed to using drop.levels
from gdata
rather than droplevels
. Added a warning if the resultant data.frame has zero rows (same as in Subset
). Added some checks with error messages. Added suite of tests.
fitPlot()
: Modified. Replaced the use of nobs()
from gdata
in the internal function iCIfp1()
with validn()
. This removed one dependency on gdata
.fitPlot()
: Modified. Replaced the use of nobs()
from gdata
in the internal function iCIfp1()
with validn()
. This removed one dependency on gdata
.
headtail()
: Modified. Internally remove tbl_df
class (from dplyr
) if it exists. Added some checks with error messages. Added suite of tests.FSA 0.6.13 Ma
ageBias()
: Modified. Corrected bugs with show.pts=TRUE
and “sunflower plot” that came from changes made in version 0.5.1.residPlot()
: Modified. Deleted student=
. Added resid.type=
which allows used of standardized (internally studentized) and (externally) studentized residuals for linear models (along with raw residuals). Added code following nlsResiduals()
from nlstools
for standardized residuals for nonlinear models.residPlot()
: Modified. Deleted student=
. Added resid.type=
which allows used of standardized (internally studentized) and (externally) studentized residuals for linear models (along with raw residuals). Added code following nlsResiduals()
from nlstools
for standardized residuals for nonlinear models.
FSA 0.6.12 May15
@@ -1431,7 +1439,7 @@ FSA 0.4.45 Fe
mrOpen()
: Modified. Removed pretty printing for summary()
and confint()
methods. These got in the way of being able to cbind()
the results together for a succinct display.residPlot()
: Modified. Changed use of par()
to eliminate modifications to the gridding of plots after the function is complete.residPlot()
: Modified. Changed use of par()
to eliminate modifications to the gridding of plots after the function is complete.
FSA 0.4.44 Feb15
@@ -1466,7 +1474,7 @@ FSA 0.4.43 Fe
FSA 0.4.41 Jan15
@@ -1520,7 +1528,7 @@ FSA 0.4.36 Ja
psdVal()
: Modified. Added ability to use a named vector in addLens=
and then not use addNames=
. The original functionality is still there. Added a check that one of the Gabelhouse lengths is not also one of the addLens=
values. Deleted the addLens=
value if it was (the user might have sent a name with this value and will want that name to appear in the results).residPlot()
: Modiifed. Added xpd=TRUE
to the loess line routine so that the curve and polygon would stay within the plotting region.residPlot()
: Modiifed. Added xpd=TRUE
to the loess line routine so that the curve and polygon would stay within the plotting region.
tictactoe()
: Modified. Add the ability to handle differences between when xaxs="r"
and yaxs="r"
are used and when xaxs="i"
and yaxs="i"
are used.FSA 0.4.18 Ju
CutthroatAL
: Modified. Updated from a new source to include many more years of samples.fitPlot()
: Modified. Changed trans.pt=
to transparency=
.fitPlot()
: Modified. Changed trans.pt=
to transparency=
.
mrClosed()
: Modified. Completely re-built the internal file structure. Changed incl.inputs=
to verbose=
. Added the ability to construct a CI for the overall PE when multiple groups are used in a Petersen family method (thus, added a incl.all=
to confint()
). Changed default for incl.all=
from FALSE
to TRUE
. Modified the messages when verbose=TRUE
.FSA 0.4.16 Ju
BluegillLM
: Modified. Added a seealso.residPlot()
: Modified. Changed the loess-related methods to use loess()
, to put an approximate confident band with the line, the line and band are “under” the points, the line is lighter. Put the horizontal reference line at zero under the points. Made loess=TRUE
the default.residPlot()
: Modified. Changed the loess-related methods to use loess()
, to put an approximate confident band with the line, the line and band are “under” the points, the line is lighter. Put the horizontal reference line at zero under the points. Made loess=TRUE
the default.iAddLoessLine()
: Modified. See residPlot()
.iAddLoessLine()
: Modified. See residPlot()
.
iHndlFormula()
: Modified. COrrected the positioning of the explanatory variables when the model has a response variable.iMakeBaseResidPlot()
: Added as an internal function to residPlot()
to simplify some coding.iMakeBaseResidPlot()
: Added as an internal function to residPlot()
to simplify some coding.
iMakeColor()
: Modified. More intelligently handles values that are greater than 1 (converts them to decimals by inverting.)lwPredsComp()
: Modified. Changed mdl=
to object=
. Added use of internal iHndlFormula()
and moved two internal functions outside the main function. Changed default for intervals from both
to confidence
and changed so that if only the confidence or prediction intervals are plotted they will be black with lwd=
width (if both are plotted the CI is now black and the PI is now blue). Added a show.preds
argument. Changed connect.means=
to connect.preds=
. Changed default lwd=
value and how it is used for CIs, PIs, and the connection lines. Added col.connect=
argument. Removed mar
and mgp
from par()
call (left mfrow
). Added more examples. Added tests for error messages.residPlot()
: Modified. Added inclHist=
argument. Corrected a bug around the use of thigmophobe()
in iAddOutlierTest()
. Changed default for student=
to FALSE
. Modified and added more examples.residPlot()
: Modified. Added inclHist=
argument. Corrected a bug around the use of thigmophobe()
in iAddOutlierTest()
. Changed default for student=
to FALSE
. Modified and added more examples.
SMBassWB
: Modified. Added a seealso.FSA 0.4.16 Ju
FSA 0.4.15 Jun14
addLoessLine()
: Deleted. Moved functionality to iAddLoessLine()
and moved code to residPlot()
file..addLoessLine()
: Deleted. Moved functionality to iAddLoessLine()
and moved code to residPlot()
file..addOutlierTestResults()
: Deleted. Moved functionality to iAddOutlierTestResults()
and moved code to residPlot()
file.addOutlierTestResults()
: Deleted. Moved functionality to iAddOutlierTestResults()
and moved code to residPlot()
file.
capHistConvert()
: Added an interactive()
to the Rcapture
example in the help file.checkStartcatW()
: Deleted. Moved functionality to iCheckStartcatW()
.ci.fp()
: Deleted. Moved functionality to iCIfp()
and moved code to fitPlot()
file.ci.fp()
: Deleted. Moved functionality to iCIfp()
and moved code to fitPlot()
file.
ci.fp.1()
: Deleted. Moved functionality to iCIfp1()
and moved code to fitPlot()
file.ci.fp.1()
: Deleted. Moved functionality to iCIfp1()
and moved code to fitPlot()
file.
ciLabel()
: Deleted. Moved functionality to iCILabel()
.FSA 0.4.15 Ju
getFilePrefix()
: Deleted. Moved functionality to iGetFilePrefix()
and moved code to swvUtils
file.getMainTitle()
: Deleted. Moved functionality to iGetMainTitle()
and moved code to residPlot()
file.getMainTitle()
: Deleted. Moved functionality to iGetMainTitle()
and moved code to residPlot()
file.
getVarFromFormula()
: Deleted. Moved functionality to iGetVarFromFormula()
.FSA 0.4.12 Ma
fact2num()
: Modified. Changed example from “dont run” to “interactive.”fishR()
: Modified. Removed news
and added posts
to the where=
argument. Cleaned up the Rd file. Changed example from “dont run” to “interactive.”FSA()
: Modified. Cleaned up the Rd file.FSANews()
, fsaNews()
: Modified. Cleaned up and fixed the Usage section in the Rd file. Changed example from “dont run” to “interactive.”FSANews()
, fsaNews()
: Modified. Cleaned up and fixed the Usage section in the Rd file. Changed example from “dont run” to “interactive.”growthRadPlot()
: Modified. Changed example from “dont run” to “interactive.”htest.nlsBoot()
: Modified. Changed example from “dont run” to “interactive.”lagratio()
: Modified. Changed example from “dont run” to “interactive.”FSA 0.4.5 Apr14
ageBias()
: Modified. Added a plot that shows the number of observations at each combined age. Changed the coding slightly around Bowker’s test (added an internal function) and implemented Evans and Hoenig’s and McNemar’s test. These changes resulting in adding a “table” choice to what=
that will print just the age-agreement table. When what="symmetry"
is chosen all three ob Bowker’s, McNemar’s, and Evans-Hoenig results will be output as a table. The age-agreement table is no longer printed when what="symmetry"
. In addition, what="Bowkers"
, what="EvansHoenig"
, and what="McNemars"
can be used to see the Bowker’s, Evans and Hoenig, and McNemars test results, respectfully. Added a cont.corr=
argument for use with McNemars test.agePrecision()
: Modified. Added the ability to show raw (vs. absolute value) differences between structures. This resulted in the removal of what="agreement"
(though it is deprecated, with a message, for now) and the addition of what="difference"
and what="absolute difference"
.fishR()
: Modified. Changed to point to the github NEWS.md when where="news"
.fitPlot()
: Modified. Changed the logistic regression code to handle the changes to plotBinResp()
(see below). In addition, a temporary fix was added so that the size of the y-axis labels could be modified with an external call to par()
. This was a fix for Glen Sutton but will ultimately need to be handled more elegantly.fsaNews()
: Modified. Changed to point to the github NEWS.md.fitPlot()
: Modified. Changed the logistic regression code to handle the changes to plotBinResp()
(see below). In addition, a temporary fix was added so that the size of the y-axis labels could be modified with an external call to par()
. This was a fix for Glen Sutton but will ultimately need to be handled more elegantly.fsaNews()
: Modified. Changed to point to the github NEWS.md.catchCurveSim()
: Added back from FSATeach (required adding ImportFrom for relax package).cohortSim()
: Added back from FSATeach (required adding ImportFrom for relax package).growthModelSim()
: Added back from FSATeach (required adding ImportFrom for relax package).FSA 0.4.3 Mar14
capHistConvert()
: Modified the help file by commenting out the example that depends on the RCapture package. This is needed for the RForge site for the time being.fitPlot()
: Modified Rd. Added two polynomial regression examples.fitPlot()
: Modified Rd. Added two polynomial regression examples.
fitPlot.IVR()
: Modified. Changed to use new typeoflm()
, changed interval=
argument, removed automatic main title, removed a bunch of unneeded code.fitPlot.IVR()
: Modified. Changed to use new typeoflm()
, changed interval=
argument, removed automatic main title, removed a bunch of unneeded code.
fitPlot.logreg()
: Modified. Removed automatic main title.fitPlot.logreg()
: Modified. Removed automatic main title.
fitPlot.nls()
: Modified. Removed automatic main title.fitPlot.nls()
: Modified. Removed automatic main title.
fitPlot.ONEWAY()
: Modified. Changed to use new typeoflm()
, removed automatic main title, removed one line of unneeded code.fitPlot.ONEWAY()
: Modified. Changed to use new typeoflm()
, removed automatic main title, removed one line of unneeded code.
fitPlot.SLR()
: Modified. Changed to use new typeoflm()
, changed interval=
argument, removed automatic main title.fitPlot.SLR()
: Modified. Changed to use new typeoflm()
, changed interval=
argument, removed automatic main title.
fitPlot.TWOWAY()
: Modified. Changed to use new typeoflm()
and removed automatic main titlefitPlot.TWOWAY()
: Modified. Changed to use new typeoflm()
and removed automatic main title
gReshape()
: Modified. Added a drop=
argument so that the user can drop some variables before reshaping. Also, added new.row.names=1:100000
to the reshape()
call to work-around issues with duplicate row names (which were particularly problematic if any of the id.vars=
had missing values.)FSA 0.3.3 21D
confint.nlsBoot()
: Modified to use ciLabel()
.confint.removal()
: Modified to use ciLabel()
.dietOverlap()
: Added.fsa.news(), FSA.news()
: Deleted, renamed to fsaNews()
and FSANews()
.fsa.news(), FSA.news()
: Deleted, renamed to fsaNews()
and FSANews()
.fsaNews(), FSANews()
: Renamed versions of fsa.news()
and FSA.news()
.FSAsims()
: Deleted. Rarely used and not supported in non-windows and RStudio.growthModelSim()
: Modified in a variety of ways. First, streamlined the internal functions so that the plot can be created individually. Second, converted to using gslider()
instead of slider()
.FSA 0.3.1 25N
depletion()
: modifed class name to “depletion” from “Depletion”.discharge()
: modified class name to “discharge” from “StrmDschrg”.emp()
: modified class names to “empXX” from “EMPxx”.fitPlot()
: added from NCStats.fitPlot()
: added from NCStats.FroeseWs()
: modified class name to “FroeseWs” from “FROESE”.histStack()
: added.hoCoef()
: added from NCStats.FSA 0.3.1 25N
pos2adj()
: modified the labels for the positions by including full names for all directions, eliminating the single letters for the four main directions, but also leaving the four “off” directions as abbreviations.psdVal(), rsdVal(), rsdCalc(), rsdPlot()
: modified to use capFirst so that the user does not need to focus on capitalization of the species name.removal()
: modified class name to “removal” from “Removal”.residPlot()
: added from NCStats.residPlot()
: added from NCStats.rlp()
: modified class name to “rlp” from “RLP”.Summarize()
: added from NCStats.typeoflm()
: added from NCStats.Examples
# typical output of summary() for a numeric variable
summary(d$y)
#> Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
-#> 0.0000 0.2595 0.5380 0.5120 0.7574 0.9902 3
+#> 0.0000 0.2667 0.5156 0.5131 0.7794 0.9975 3
# this function
Summarize(d$y,digits=3)
#> n nvalid mean sd min Q1 median Q3
-#> 102.000 99.000 0.512 0.288 0.000 0.260 0.538 0.757
+#> 102.000 99.000 0.513 0.314 0.000 0.267 0.516 0.779
#> max percZero
-#> 0.990 2.020
+#> 0.998 2.020
Summarize(~y,data=d,digits=3)
#> n nvalid mean sd min Q1 median Q3
-#> 102.000 99.000 0.512 0.288 0.000 0.260 0.538 0.757
+#> 102.000 99.000 0.513 0.314 0.000 0.267 0.516 0.779
#> max percZero
-#> 0.990 2.020
+#> 0.998 2.020
Summarize(y~1,data=d,digits=3)
#> n nvalid mean sd min Q1 median Q3
-#> 102.000 99.000 0.512 0.288 0.000 0.260 0.538 0.757
+#> 102.000 99.000 0.513 0.314 0.000 0.267 0.516 0.779
#> max percZero
-#> 0.990 2.020
+#> 0.998 2.020
# note that nvalid is not shown if there are no NAs and
# percZero is not shown if there are no zeros
Summarize(~w,data=d,digits=3)
#> n mean sd min Q1 median Q3 max
-#> 102.000 7.961 0.832 7.000 7.000 8.000 9.000 9.000
+#> 102.000 7.804 0.809 7.000 7.000 8.000 8.000 9.000
Summarize(~v,data=d,digits=3)
#> n mean sd min Q1 median Q3 max
-#> 102.000 1.059 0.781 0.000 0.000 1.000 2.000 2.000
+#> 102.000 0.980 0.856 0.000 0.000 1.000 2.000 2.000
#> percZero
-#> 27.451
+#> 37.255
# note that the nvalid and percZero results can be forced to be shown
Summarize(~w,data=d,digits=3,nvalid="always",percZero="always")
#> n nvalid mean sd min Q1 median Q3
-#> 102.000 102.000 7.961 0.832 7.000 7.000 8.000 9.000
+#> 102.000 102.000 7.804 0.809 7.000 7.000 8.000 8.000
#> max percZero
#> 9.000 0.000
## Numeric vector by levels of a factor variable
Summarize(y~g1,data=d,digits=3)
#> g1 n nvalid mean sd min Q1 median Q3 max percZero
-#> 1 A 29 28 0.471 0.339 0.000 0.164 0.466 0.767 0.977 7.143
-#> 2 B 16 14 0.433 0.303 0.071 0.229 0.336 0.601 0.990 0.000
-#> 3 C 29 29 0.557 0.263 0.069 0.347 0.588 0.795 0.961 0.000
+#> 1 A 21 21 0.513 0.337 0.000 0.254 0.535 0.854 0.974 4.762
+#> 2 B 27 25 0.530 0.323 0.000 0.259 0.528 0.808 0.963 4.000
+#> 3 C 27 26 0.516 0.286 0.023 0.302 0.441 0.754 0.998 0.000
Summarize(y~g2,data=d,digits=3)
#> g2 n nvalid mean sd min Q1 median Q3 max percZero
-#> 1 UNKNOWN 34 32 0.482 0.254 0.021 0.273 0.526 0.639 0.972 0.000
-#> 2 female 37 37 0.545 0.310 0.000 0.238 0.574 0.810 0.990 2.703
-#> 3 male 31 30 0.504 0.300 0.000 0.262 0.454 0.782 0.985 3.333
+#> 1 UNKNOWN 35 35 0.538 0.284 0.000 0.376 0.516 0.766 0.988 2.857
+#> 2 female 37 34 0.519 0.336 0.000 0.240 0.521 0.838 0.998 2.941
+#> 3 male 30 30 0.478 0.329 0.003 0.189 0.515 0.755 0.963 0.000
Summarize(y~g2,data=d,digits=3,exclude="UNKNOWN")
-#> g2 n nvalid mean sd min Q1 median Q3 max percZero
-#> 1 female 37 37 0.545 0.31 0 0.238 0.574 0.810 0.990 2.703
-#> 2 male 31 30 0.504 0.30 0 0.262 0.454 0.782 0.985 3.333
+#> g2 n nvalid mean sd min Q1 median Q3 max percZero
+#> 1 female 37 34 0.519 0.336 0.000 0.240 0.521 0.838 0.998 2.941
+#> 2 male 30 30 0.478 0.329 0.003 0.189 0.515 0.755 0.963 0.000
## Numeric vector by levels of two factor variables
Summarize(y~g1+g2,data=d,digits=3)
#> g1 g2 n nvalid mean sd min Q1 median Q3 max percZero
-#> 1 A UNKNOWN 10 9 0.365 0.336 0.021 0.072 0.277 0.631 0.972 0.000
-#> 2 B UNKNOWN 5 4 0.365 0.200 0.184 0.243 0.317 0.438 0.641 0.000
-#> 3 C UNKNOWN 7 7 0.628 0.200 0.347 0.525 0.613 0.713 0.961 0.000
-#> 4 A female 9 9 0.465 0.344 0.000 0.196 0.458 0.759 0.964 11.111
-#> 5 B female 8 8 0.496 0.376 0.071 0.192 0.403 0.848 0.990 0.000
-#> 6 C female 13 13 0.597 0.310 0.069 0.389 0.756 0.824 0.894 0.000
-#> 7 A male 10 10 0.571 0.342 0.000 0.259 0.709 0.832 0.977 10.000
-#> 8 B male 3 2 0.316 0.042 0.286 0.301 0.316 0.331 0.345 0.000
-#> 9 C male 9 9 0.442 0.216 0.167 0.280 0.452 0.588 0.795 0.000
+#> 1 A UNKNOWN 6 6 0.542 0.342 0.124 0.323 0.467 0.843 0.953 0.000
+#> 2 B UNKNOWN 10 10 0.616 0.298 0.000 0.475 0.582 0.894 0.947 10.000
+#> 3 C UNKNOWN 11 11 0.481 0.273 0.027 0.359 0.416 0.651 0.988 0.000
+#> 4 A female 9 9 0.540 0.364 0.000 0.274 0.666 0.854 0.974 11.111
+#> 5 B female 8 6 0.537 0.330 0.099 0.295 0.572 0.756 0.958 0.000
+#> 6 C female 8 7 0.500 0.370 0.023 0.238 0.421 0.791 0.998 0.000
+#> 7 A male 6 6 0.444 0.344 0.017 0.213 0.394 0.708 0.894 0.000
+#> 8 B male 9 9 0.429 0.354 0.003 0.147 0.280 0.709 0.963 0.000
+#> 9 C male 8 8 0.578 0.248 0.186 0.360 0.720 0.746 0.819 0.000
Summarize(y~g1+g2,data=d,digits=3,exclude="UNKNOWN")
-#> g1 g2 n nvalid mean sd min Q1 median Q3 max percZero
-#> 1 A female 9 9 0.465 0.344 0.000 0.196 0.458 0.759 0.964 11.111
-#> 2 B female 8 8 0.496 0.376 0.071 0.192 0.403 0.848 0.990 0.000
-#> 3 C female 13 13 0.597 0.310 0.069 0.389 0.756 0.824 0.894 0.000
-#> 4 A male 10 10 0.571 0.342 0.000 0.259 0.709 0.832 0.977 10.000
-#> 5 B male 3 2 0.316 0.042 0.286 0.301 0.316 0.331 0.345 0.000
-#> 6 C male 9 9 0.442 0.216 0.167 0.280 0.452 0.588 0.795 0.000
+#> g1 g2 n nvalid mean sd min Q1 median Q3 max percZero
+#> 1 A female 9 9 0.540 0.364 0.000 0.274 0.666 0.854 0.974 11.111
+#> 2 B female 8 6 0.537 0.330 0.099 0.295 0.572 0.756 0.958 0.000
+#> 3 C female 8 7 0.500 0.370 0.023 0.238 0.421 0.791 0.998 0.000
+#> 4 A male 6 6 0.444 0.344 0.017 0.213 0.394 0.708 0.894 0.000
+#> 5 B male 9 9 0.429 0.354 0.003 0.147 0.280 0.709 0.963 0.000
+#> 6 C male 8 8 0.578 0.248 0.186 0.360 0.720 0.746 0.819 0.000
## What happens if RHS of formula is not a factor
Summarize(y~w,data=d,digits=3)
#> w n nvalid mean sd min Q1 median Q3 max percZero
-#> 1 7 37 37 0.519 0.265 0.071 0.277 0.536 0.754 0.977 0.000
-#> 2 8 32 29 0.531 0.304 0.000 0.263 0.631 0.795 0.990 3.448
-#> 3 9 33 33 0.487 0.306 0.000 0.256 0.554 0.689 0.985 3.030
+#> 1 7 45 44 0.585 0.323 0.000 0.320 0.707 0.879 0.974 2.273
+#> 2 8 32 32 0.461 0.319 0.000 0.196 0.403 0.677 0.998 3.125
+#> 3 9 25 23 0.448 0.271 0.003 0.295 0.421 0.635 0.953 0.000
## Summarizing multiple variables in a data.frame (must reduce to numerics)
lapply(as.list(d[,1:3]),Summarize,digits=4)
#> $y
#> n nvalid mean sd min Q1 median Q3
-#> 102.0000 99.0000 0.5120 0.2882 0.0000 0.2595 0.5380 0.7574
+#> 102.0000 99.0000 0.5131 0.3142 0.0000 0.2667 0.5156 0.7794
#> max percZero
-#> 0.9902 2.0202
+#> 0.9975 2.0202
#>
#> $w
#> n mean sd min Q1 median Q3 max
-#> 102.0000 7.9608 0.8316 7.0000 7.0000 8.0000 9.0000 9.0000
+#> 102.0000 7.8039 0.8089 7.0000 7.0000 8.0000 8.0000 9.0000
#>
#> $v
#> n mean sd min Q1 median Q3 max
-#> 102.0000 1.0588 0.7813 0.0000 0.0000 1.0000 2.0000 2.0000
+#> 102.0000 0.9804 0.8557 0.0000 0.0000 1.0000 2.0000 2.0000
#> percZero
-#> 27.4510
+#> 37.2549
#>
Examples
# mean length-at-age
Summarize(len~age,data=WR1.comb,digits=2)
#> age n mean sd min Q1 median Q3 max
-#> 1 4 987 51.87 5.15 35 48.00 52.0 56.00 64
-#> 2 5 395 71.76 5.33 60 68.00 72.0 76.00 84
-#> 3 6 271 86.75 4.73 75 83.00 87.0 89.00 99
-#> 4 7 449 97.58 5.19 86 93.00 97.0 102.00 114
-#> 5 8 146 101.14 5.80 90 97.00 101.0 107.00 113
-#> 6 9 77 103.79 3.11 100 102.00 103.0 105.00 113
-#> 7 10 38 105.16 7.22 95 97.25 107.0 109.75 119
-#> 8 11 6 112.17 0.98 111 111.25 112.5 113.00 113
+#> 1 4 987 51.86 5.14 35 48.00 52.0 56.00 64
+#> 2 5 395 71.80 5.33 60 68.00 72.0 76.00 84
+#> 3 6 270 86.76 4.83 75 83.00 87.0 89.00 99
+#> 4 7 449 97.45 5.17 85 93.00 97.0 101.00 112
+#> 5 8 146 101.29 5.86 90 97.00 101.5 106.75 113
+#> 6 9 78 103.85 3.08 100 102.00 103.0 105.75 112
+#> 7 10 38 105.42 7.08 95 98.25 107.0 109.75 119
+#> 8 11 6 111.67 1.51 110 110.25 112.0 113.00 113
# age frequency distribution
( af <- xtabs(~age,data=WR1.comb) )
#> age
#> 4 5 6 7 8 9 10 11
-#> 987 395 271 449 146 77 38 6
+#> 987 395 270 449 146 78 38 6
# proportional age distribution
( ap <- prop.table(af) )
#> age
#> 4 5 6 7 8 9
-#> 0.416631490 0.166737020 0.114394259 0.189531448 0.061629379 0.032503166
+#> 0.416631490 0.166737020 0.113972140 0.189531448 0.061629379 0.032925285
#> 10 11
#> 0.016040523 0.002532714
@@ -278,15 +278,15 @@ Examples
# combine orig age & new ages
WR2.comb <- rbind(WR2.age, WR2.len)
Summarize(len~age,data=WR2.comb,digits=2)
-#> age n mean sd min Q1 median Q3 max
-#> 1 4 986 51.85 5.14 35 48.00 52.0 56.00 64
-#> 2 5 396 71.73 5.29 60 68.00 72.0 76.00 84
-#> 3 6 270 86.71 4.65 75 83.00 87.0 89.00 99
-#> 4 7 449 97.55 5.15 85 93.00 97.0 101.00 114
-#> 5 8 147 101.22 5.77 90 97.00 101.0 107.00 113
-#> 6 9 77 103.92 2.99 100 102.00 103.0 105.00 113
-#> 7 10 38 105.08 7.35 95 97.00 106.5 109.75 119
-#> 8 11 6 112.00 1.26 110 111.25 112.5 113.00 113
+#> age n mean sd min Q1 median Q3 max
+#> 1 4 987 51.85 5.12 35 48.00 52.0 56.0 64
+#> 2 5 395 71.76 5.22 60 68.00 72.0 76.0 84
+#> 3 6 271 86.76 4.59 75 83.00 87.0 89.0 99
+#> 4 7 448 97.60 5.21 85 93.00 97.0 102.0 114
+#> 5 8 145 101.14 5.76 90 96.00 101.0 107.0 113
+#> 6 9 79 103.75 3.10 100 102.00 103.0 105.0 112
+#> 7 10 38 105.13 7.30 95 97.00 106.5 110.5 119
+#> 8 11 6 111.83 0.75 111 111.25 112.0 112.0 113
## Third Example -- Uneven breaks for length categories
WR3 <- WR79
@@ -353,15 +353,15 @@ Examples
#> 8 8 42 4 40
WR3.comb <- rbind(WR3.age, WR3.len)
Summarize(len~age,data=WR3.comb,digits=2)
-#> age n mean sd min Q1 median Q3 max
-#> 1 4 986 51.84 5.12 35 48.00 52.0 56.00 64
-#> 2 5 396 71.77 5.30 60 68.00 72.0 76.00 84
-#> 3 6 271 86.73 4.70 75 83.00 87.0 89.00 99
-#> 4 7 452 97.77 5.44 85 93.00 97.0 102.00 112
-#> 5 8 140 100.36 5.20 90 97.00 101.0 103.00 113
-#> 6 9 78 104.50 3.04 100 102.00 103.0 107.00 113
-#> 7 10 42 104.69 7.28 95 98.00 103.0 112.00 119
-#> 8 11 4 113.50 2.89 110 112.25 113.5 114.75 117
+#> age n mean sd min Q1 median Q3 max
+#> 1 4 987 51.87 5.15 35 48 52.0 56 64
+#> 2 5 395 71.72 5.25 60 68 72.0 76 84
+#> 3 6 271 86.85 4.71 75 83 87.0 89 99
+#> 4 7 451 97.65 5.34 85 93 97.0 102 113
+#> 5 8 142 100.68 5.44 90 97 101.0 104 113
+#> 6 9 78 104.40 3.20 100 102 103.0 107 113
+#> 7 10 40 104.80 7.14 95 98 103.5 112 119
+#> 8 11 5 112.60 2.70 110 111 112.0 113 117
Examples
#> 2 rows had an individual measurement.
#> 4 rows with multiple measurements were expanded to 15 rows of individual measurements.
#> name lwr.bin upr.bin newlen lennote
-#> 1 Frank 17.0 17.5 17.3 Expanded length
+#> 1 Frank 17.0 17.5 17.0 Expanded length
#> 2 Max 17.0 17.5 17.5 Expanded length
-#> 3 Johnson 15.0 15.5 15.5 Expanded length
-#> 4 Johnson 15.0 15.5 15.0 Expanded length
-#> 5 Johnson 15.0 15.5 15.5 Expanded length
-#> 6 Johnson 15.0 15.5 15.4 Expanded length
-#> 7 Johnson 15.0 15.5 15.1 Expanded length
-#> 8 Johnson 15.0 15.5 15.2 Expanded length
+#> 3 Johnson 15.0 15.5 15.3 Expanded length
+#> 4 Johnson 15.0 15.5 15.3 Expanded length
+#> 5 Johnson 15.0 15.5 15.0 Expanded length
+#> 6 Johnson 15.0 15.5 15.3 Expanded length
+#> 7 Johnson 15.0 15.5 15.0 Expanded length
+#> 8 Johnson 15.0 15.5 15.5 Expanded length
#> 9 Johnson 15.5 16.0 16.0 Expanded length
-#> 10 Johnson 15.5 16.0 16.0 Expanded length
-#> 11 Johnson 15.5 16.0 15.6 Expanded length
-#> 12 Johnson 15.5 16.0 15.6 Expanded length
-#> 13 Jones 16.0 16.5 16.0 Expanded length
-#> 14 Jones 16.0 16.5 16.5 Expanded length
-#> 15 Frank 16.0 16.5 16.5 Expanded length
-#> 16 Frank 16.0 16.5 16.4 Expanded length
-#> 17 Frank 16.0 16.5 16.5 Expanded length
+#> 10 Johnson 15.5 16.0 15.9 Expanded length
+#> 11 Johnson 15.5 16.0 15.9 Expanded length
+#> 12 Johnson 15.5 16.0 15.5 Expanded length
+#> 13 Jones 16.0 16.5 16.3 Expanded length
+#> 14 Jones 16.0 16.5 16.0 Expanded length
+#> 15 Frank 16.0 16.5 16.3 Expanded length
+#> 16 Frank 16.0 16.5 16.3 Expanded length
+#> 17 Frank 16.0 16.5 16.3 Expanded length
# some need expansion
( d2 <- data.frame(name=c("Johnson","Johnson","Jones","Frank","Frank","Max"),
@@ -213,20 +213,20 @@ Examples
#> 1 Frank 17.1 17.1 17.1 Observed length
#> 2 Max 17.3 17.3 17.3 Observed length
#> 3 Johnson 15.0 15.5 15.4 Expanded length
-#> 4 Johnson 15.0 15.5 15.5 Expanded length
-#> 5 Johnson 15.0 15.5 15.3 Expanded length
-#> 6 Johnson 15.0 15.5 15.2 Expanded length
-#> 7 Johnson 15.0 15.5 15.0 Expanded length
-#> 8 Johnson 15.0 15.5 15.2 Expanded length
-#> 9 Johnson 15.5 16.0 15.6 Expanded length
-#> 10 Johnson 15.5 16.0 15.6 Expanded length
-#> 11 Johnson 15.5 16.0 15.7 Expanded length
-#> 12 Johnson 15.5 16.0 16.0 Expanded length
+#> 4 Johnson 15.0 15.5 15.2 Expanded length
+#> 5 Johnson 15.0 15.5 15.0 Expanded length
+#> 6 Johnson 15.0 15.5 15.3 Expanded length
+#> 7 Johnson 15.0 15.5 15.1 Expanded length
+#> 8 Johnson 15.0 15.5 15.0 Expanded length
+#> 9 Johnson 15.5 16.0 15.7 Expanded length
+#> 10 Johnson 15.5 16.0 16.0 Expanded length
+#> 11 Johnson 15.5 16.0 16.0 Expanded length
+#> 12 Johnson 15.5 16.0 15.7 Expanded length
#> 13 Jones 16.0 16.5 16.0 Expanded length
-#> 14 Jones 16.0 16.5 16.0 Expanded length
-#> 15 Frank 16.0 16.5 16.1 Expanded length
-#> 16 Frank 16.0 16.5 16.0 Expanded length
-#> 17 Frank 16.0 16.5 16.5 Expanded length
+#> 14 Jones 16.0 16.5 16.3 Expanded length
+#> 15 Frank 16.0 16.5 16.3 Expanded length
+#> 16 Frank 16.0 16.5 16.5 Expanded length
+#> 17 Frank 16.0 16.5 16.1 Expanded length
# none need expansion
( d3 <- data.frame(name=c("Johnson","Johnson","Jones","Frank","Frank","Max"),
@@ -326,21 +326,21 @@ Examples
#> name lwr.bin upr.bin newlen lennote
#> 1 Frank 17.1 17.1 17.1 Observed length
#> 2 Max 17.3 17.3 17.3 Observed length
-#> 3 Johnson 15.0 15.5 15.4 Expanded length
-#> 4 Johnson 15.0 15.5 15.0 Expanded length
-#> 5 Johnson 15.0 15.5 15.0 Expanded length
-#> 6 Johnson 15.0 15.5 15.5 Expanded length
-#> 7 Johnson 15.0 15.5 15.3 Expanded length
-#> 8 Johnson 15.0 15.5 15.1 Expanded length
+#> 3 Johnson 15.0 15.5 15.3 Expanded length
+#> 4 Johnson 15.0 15.5 15.5 Expanded length
+#> 5 Johnson 15.0 15.5 15.1 Expanded length
+#> 6 Johnson 15.0 15.5 15.4 Expanded length
+#> 7 Johnson 15.0 15.5 15.0 Expanded length
+#> 8 Johnson 15.0 15.5 15.2 Expanded length
#> 9 Johnson 15.0 15.9 15.9 Expanded length
#> 10 Johnson 15.0 15.9 15.4 Expanded length
-#> 11 Johnson 15.0 15.9 15.5 Expanded length
-#> 12 Johnson 15.0 15.9 15.0 Expanded length
-#> 13 Jones 16.0 16.5 16.1 Expanded length
-#> 14 Jones 16.0 16.5 16.2 Expanded length
-#> 15 Frank 16.0 16.9 16.6 Expanded length
-#> 16 Frank 16.0 16.9 16.4 Expanded length
-#> 17 Frank 16.0 16.9 16.1 Expanded length
+#> 11 Johnson 15.0 15.9 15.1 Expanded length
+#> 12 Johnson 15.0 15.9 15.3 Expanded length
+#> 13 Jones 16.0 16.5 16.5 Expanded length
+#> 14 Jones 16.0 16.5 16.4 Expanded length
+#> 15 Frank 16.0 16.9 16.8 Expanded length
+#> 16 Frank 16.0 16.9 16.8 Expanded length
+#> 17 Frank 16.0 16.9 16.5 Expanded length
# some need expansion but include zeros and NAs for counts
( d2a <- data.frame(name=c("Johnson","Johnson","Jones","Frank","Frank","Max","Max","Max","Max"),
@@ -368,21 +368,21 @@ Examples
#> 3 Max NA NA NA Observed length
#> 4 Frank 17.1 17.1 17.1 Observed length
#> 5 Max 17.3 17.3 17.3 Observed length
-#> 6 Johnson 15.0 15.5 15.5 Expanded length
-#> 7 Johnson 15.0 15.5 15.0 Expanded length
-#> 8 Johnson 15.0 15.5 15.5 Expanded length
-#> 9 Johnson 15.0 15.5 15.1 Expanded length
-#> 10 Johnson 15.0 15.5 15.4 Expanded length
-#> 11 Johnson 15.0 15.5 15.1 Expanded length
-#> 12 Johnson 15.5 16.0 15.9 Expanded length
-#> 13 Johnson 15.5 16.0 15.6 Expanded length
-#> 14 Johnson 15.5 16.0 15.7 Expanded length
+#> 6 Johnson 15.0 15.5 15.1 Expanded length
+#> 7 Johnson 15.0 15.5 15.2 Expanded length
+#> 8 Johnson 15.0 15.5 15.4 Expanded length
+#> 9 Johnson 15.0 15.5 15.4 Expanded length
+#> 10 Johnson 15.0 15.5 15.2 Expanded length
+#> 11 Johnson 15.0 15.5 15.2 Expanded length
+#> 12 Johnson 15.5 16.0 16.0 Expanded length
+#> 13 Johnson 15.5 16.0 15.5 Expanded length
+#> 14 Johnson 15.5 16.0 15.8 Expanded length
#> 15 Johnson 15.5 16.0 16.0 Expanded length
-#> 16 Jones 16.0 16.5 16.2 Expanded length
-#> 17 Jones 16.0 16.5 16.4 Expanded length
-#> 18 Frank 16.0 16.5 16.2 Expanded length
-#> 19 Frank 16.0 16.5 16.2 Expanded length
-#> 20 Frank 16.0 16.5 16.5 Expanded length
+#> 16 Jones 16.0 16.5 16.3 Expanded length
+#> 17 Jones 16.0 16.5 16.3 Expanded length
+#> 18 Frank 16.0 16.5 16.3 Expanded length
+#> 19 Frank 16.0 16.5 16.3 Expanded length
+#> 20 Frank 16.0 16.5 16.0 Expanded length
# some need expansion but include NAs for upper values
( d2b <- data.frame(name=c("Johnson","Johnson","Jones","Frank","Frank","Max"),
@@ -413,11 +413,11 @@ Examples
#> 10 Johnson 15.5 15.5 15.5 Observed length
#> 11 Johnson 15.5 15.5 15.5 Observed length
#> 12 Johnson 15.5 15.5 15.5 Observed length
-#> 13 Jones 16.0 16.5 16.0 Expanded length
+#> 13 Jones 16.0 16.5 16.4 Expanded length
#> 14 Jones 16.0 16.5 16.0 Expanded length
-#> 15 Frank 16.0 16.5 16.2 Expanded length
-#> 16 Frank 16.0 16.5 16.0 Expanded length
-#> 17 Frank 16.0 16.5 16.3 Expanded length
+#> 15 Frank 16.0 16.5 16.3 Expanded length
+#> 16 Frank 16.0 16.5 16.2 Expanded length
+#> 17 Frank 16.0 16.5 16.2 Expanded length
# some need expansion but include NAs for upper values
( d2c <- data.frame(name=c("Johnson","Johnson","Jones","Frank","Frank","Max"),
@@ -448,11 +448,11 @@ Examples
#> 10 Johnson 15.5 15.5 15.5 Observed length
#> 11 Johnson 15.5 15.5 15.5 Observed length
#> 12 Johnson 15.5 15.5 15.5 Observed length
-#> 13 Jones 16.0 16.5 16.1 Expanded length
-#> 14 Jones 16.0 16.5 16.1 Expanded length
-#> 15 Frank 16.0 16.5 16.4 Expanded length
-#> 16 Frank 16.0 16.5 16.3 Expanded length
-#> 17 Frank 16.0 16.5 16.5 Expanded length
+#> 13 Jones 16.0 16.5 16.4 Expanded length
+#> 14 Jones 16.0 16.5 16.0 Expanded length
+#> 15 Frank 16.0 16.5 16.2 Expanded length
+#> 16 Frank 16.0 16.5 16.2 Expanded length
+#> 17 Frank 16.0 16.5 16.1 Expanded length
if (FALSE) {
##!!##!!## Change path to where example file is and then run to demo
diff --git a/docs/reference/growthModels.html b/docs/reference/growthModels.html
index f552339b..bd36eeb3 100644
--- a/docs/reference/growthModels.html
+++ b/docs/reference/growthModels.html
@@ -187,8 +187,8 @@ Examples
#> Linf <- Linf[[1]] }
#> Linf*(1-exp(-K*(t-t0)))
#> }
-#> <bytecode: 0x000000001f6a1168>
-#> <environment: 0x000000001f4d08a8>
+#> <bytecode: 0x000000000972e5e8>
+#> <environment: 0x00000000091f6a88>
ages <- 0:20
plot(vb1(ages,Linf=20,K=0.3,t0=-0.2)~ages,type="b",pch=19)
@@ -199,8 +199,8 @@ Examples
#> r <- (L3-L2)/(L2-L1)
#> L1+(L3-L1)*((1-r^(2*((t-t1)/(t3-t1))))/(1-r^2))
#> }
-#> <bytecode: 0x000000001f655938>
-#> <environment: 0x000000000a5da208>
+#> <bytecode: 0x00000000079a3778>
+#> <environment: 0x0000000006a39718>
plot(vb2(ages,L1=10,L2=19,L3=20,t1=2,t3=18)~ages,type="b",pch=19)
( vb2c <- vbFuns("Francis",simple=TRUE) ) # compare to vb2
@@ -208,8 +208,8 @@ Examples
#> r <- (L3-L2)/(L2-L1)
#> L1+(L3-L1)*((1-r^(2*((t-t1)/(t3-t1))))/(1-r^2))
#> }
-#> <bytecode: 0x000000001f6361c0>
-#> <environment: 0x0000000008655c98>
+#> <bytecode: 0x00000000078092d0>
+#> <environment: 0x00000000226f0b50>
## Simple Examples -- Gompertz
( gomp1 <- GompertzFuns() )
@@ -219,8 +219,8 @@ Examples
#> Linf <- Linf[[1]] }
#> Linf*exp(-exp(-gi*(t-ti)))
#> }
-#> <bytecode: 0x0000000006570610>
-#> <environment: 0x000000001f8a5f48>
+#> <bytecode: 0x000000001f7a23b0>
+#> <environment: 0x0000000006f13f10>
plot(gomp1(ages,Linf=800,gi=0.5,ti=5)~ages,type="b",pch=19)
( gomp2 <- GompertzFuns("Ricker2") )
@@ -230,24 +230,24 @@ Examples
#> L0 <- L0[[1]] }
#> L0*exp(a*(1-exp(-gi*t)))
#> }
-#> <bytecode: 0x00000000068b7a18>
-#> <environment: 0x0000000006ead368>
+#> <bytecode: 0x0000000006f926a0>
+#> <environment: 0x00000000227ce5e8>
plot(gomp2(ages,L0=2,a=6,gi=0.5)~ages,type="b",pch=19)
( gomp2c <- GompertzFuns("Ricker2",simple=TRUE) ) # compare to gomp2
#> function(t,L0,a,gi) {
#> L0*exp(a*(1-exp(-gi*t)))
#> }
-#> <bytecode: 0x000000000709b110>
-#> <environment: 0x0000000006ec7230>
+#> <bytecode: 0x0000000022a02240>
+#> <environment: 0x0000000021ac5b38>
( gompT <- GompertzFuns("Troynikov1"))
#> function(Lm,dt,Linf,gi=NULL) {
#> if (length(Linf)==2) { gi <- Linf[2]
#> Linf <- Linf[1] }
#> Linf*((Lm/Linf)^exp(-gi*dt))-Lm
#> }
-#> <bytecode: 0x00000000061252f0>
-#> <environment: 0x00000000063ab450>
+#> <bytecode: 0x0000000022120938>
+#> <environment: 0x0000000022101058>
## Simple Examples -- Richards
( rich1 <- RichardsFuns() )
@@ -258,8 +258,8 @@ Examples
#> Linf <- Linf[[1]] }
#> Linf*(1-a*exp(-k*t))^b
#> }
-#> <bytecode: 0x0000000006e12798>
-#> <environment: 0x0000000006755da0>
+#> <bytecode: 0x00000000226a9490>
+#> <environment: 0x0000000021ef8d68>
plot(rich1(ages,Linf=800,k=0.5,a=1,b=6)~ages,type="b",pch=19)
( rich2 <- RichardsFuns(2) )
@@ -270,8 +270,8 @@ Examples
#> Linf <- Linf[[1]] }
#> Linf*(1-(1/b)*exp(-k*(t-ti)))^b
#> }
-#> <bytecode: 0x0000000006e1c3a8>
-#> <environment: 0x000000000662a5f8>
+#> <bytecode: 0x00000000226b31b8>
+#> <environment: 0x000000002242f3b0>
plot(rich2(ages,Linf=800,k=0.5,ti=3,b=6)~ages,type="b",pch=19)
( rich3 <- RichardsFuns(3) )
@@ -282,8 +282,8 @@ Examples
#> Linf <- Linf[[1]] }
#> Linf/((1+b*exp(-k*(t-ti)))^(1/b))
#> }
-#> <bytecode: 0x00000000061d1428>
-#> <environment: 0x0000000006edc920>
+#> <bytecode: 0x00000000226bcb60>
+#> <environment: 0x0000000021c9c788>
plot(rich3(ages,Linf=800,k=0.5,ti=3,b=0.15)~ages,type="b",pch=19)
( rich4 <- RichardsFuns(4) )
@@ -294,8 +294,8 @@ Examples
#> Linf <- Linf[[1]] }
#> Linf*(1+(b-1)*exp(-k*(t-ti)))^(1/(1-b))
#> }
-#> <bytecode: 0x00000000061dabd8>
-#> <environment: 0x0000000006faeb80>
+#> <bytecode: 0x00000000220b0448>
+#> <environment: 0x0000000022535f08>
plot(rich4(ages,Linf=800,k=0.5,ti=3,b=0.95)~ages,type="b",pch=19)
lines(rich4(ages,Linf=800,k=0.5,ti=3,b=1.5)~ages,type="b",pch=19,col="blue")
@@ -307,8 +307,8 @@ Examples
#> Linf <- Linf[[1]] }
#> Linf*(1+(((L0/Linf)^(1-b))-1)*exp(-k*t))^(1/(1-b))
#> }
-#> <bytecode: 0x00000000061e3c88>
-#> <environment: 0x0000000006a72ac0>
+#> <bytecode: 0x00000000220b98e8>
+#> <environment: 0x00000000221df530>
plot(rich5(ages,Linf=800,k=0.5,L0=50,b=1.5)~ages,type="b",pch=19)
( rich6 <- RichardsFuns(6) )
@@ -320,16 +320,16 @@ Examples
#> Linf <- Linf[[1]] }
#> Lninf+(Linf-Lninf)*(1+(b-1)*exp(-k*(t-ti)))^(1/(1-b))
#> }
-#> <bytecode: 0x00000000061f0238>
-#> <environment: 0x0000000006b77b38>
+#> <bytecode: 0x00000000220c66b0>
+#> <environment: 0x00000000222d6448>
plot(rich6(ages,Linf=800,k=0.5,ti=3,Lninf=50,b=1.5)~ages,type="b",pch=19)
( rich2c <- RichardsFuns(2,simple=TRUE) ) # compare to rich2
#> function(t,Linf,k,ti,b) {
#> Linf*(1-(1/b)*exp(-k*(t-ti)))^b
#> }
-#> <bytecode: 0x00000000061d0148>
-#> <environment: 0x0000000006c7a228>
+#> <bytecode: 0x00000000226bb810>
+#> <environment: 0x0000000022a7a248>
## Simple Examples -- Logistic
( log1 <- logisticFuns() )
@@ -339,8 +339,8 @@ Examples
#> Linf <- Linf[[1]] }
#> Linf/(1+exp(-gninf*(t-ti)))
#> }
-#> <bytecode: 0x0000000006d17780>
-#> <environment: 0x0000000006d442b8>
+#> <bytecode: 0x0000000023ace4a8>
+#> <environment: 0x0000000023af7f40>
plot(log1(ages,Linf=800,gninf=0.5,ti=5)~ages,type="b",pch=19)
( log2 <- logisticFuns("CJ2") )
@@ -350,16 +350,16 @@ Examples
#> Linf <- Linf[[1]] }
#> Linf/(1+a*exp(-gninf*t))
#> }
-#> <bytecode: 0x0000000006d220b0>
-#> <environment: 0x0000000023d4a930>
+#> <bytecode: 0x0000000023ad6a68>
+#> <environment: 0x0000000023be8b28>
plot(log2(ages,Linf=800,gninf=0.5,a=10)~ages,type="b",pch=19)
( log2c <- logisticFuns("CJ2",simple=TRUE) ) # compare to log2
#> function(t,Linf,gninf,a) {
#> Linf/(1+a*exp(-gninf*t))
#> }
-#> <bytecode: 0x0000000006d276a0>
-#> <environment: 0x0000000023e76058>
+#> <bytecode: 0x0000000023adf7f8>
+#> <environment: 0x0000000023d535e8>
( log3 <- logisticFuns("Karkach") )
#> function(t,Linf,L0=NULL,gninf=NULL) {
#> if (length(Linf)==3) { L0 <- Linf[[2]]
@@ -367,8 +367,8 @@ Examples
#> Linf <- Linf[[1]] }
#> L0*Linf/(L0+(Linf-L0)*exp(-gninf*t))
#> }
-#> <bytecode: 0x0000000006d287c0>
-#> <environment: 0x0000000023eda150>
+#> <bytecode: 0x0000000023ae0e58>
+#> <environment: 0x0000000023da54f0>
plot(log3(ages,L0=10,Linf=800,gninf=0.5)~ages,type="b",pch=19)
( log4 <- logisticFuns("Haddon") )
@@ -378,8 +378,8 @@ Examples
#> dLmax <- dLmax[1] }
#> dLmax/(1+exp(log(19)*((Lm-L50)/(L95-L50))))
#> }
-#> <bytecode: 0x0000000006d35e48>
-#> <environment: 0x0000000024033928>
+#> <bytecode: 0x0000000023aeb5c8>
+#> <environment: 0x0000000023eb4390>
###########################################################
diff --git a/docs/reference/index.html b/docs/reference/index.html
index 81f17a41..637580d8 100644
--- a/docs/reference/index.html
+++ b/docs/reference/index.html
@@ -321,6 +321,10 @@ Utilities (Other)
Miscellaneous utilities.
Fisheries stock assessment methods and data.
Capitalizes the first letter of first or all words in a string.
Converts "numeric" factor levels to numeric values.
Opens web pages associated with the fishR website.
is.even()
Determine if a number is odd or even.
Specific utilities for use in a knitr document.
All known standard weight equations.
Defunction functions.
+bootCase()
chooseColors()
compIntercepts()
compSlopes()
diags()
filterD()
fitPlot()
fsaNews()
hoCoef()
mapvalues()
plotBinResp()
residPlot()
Subset()
DEFUNCT functions.