The package ctctools
is a suite of R functions for analyses performed by the Chinook Technical Committee (CTC) of the Pacific Salmon Commission (PSC). The package comprises functions from several projects that have moderate overlap:
The ctctools package is available on Github. To install it the user needs the devtools
package from CRAN, which is installed in R using the command: install.packages("devtools")
To install ctctools
from github (it's not available on CRAN) use the R command:
devtools::install_github("MichaelFolkes/ctctools", build_vignettes = TRUE)
.
Not all functions have been fully tested.
To get started with ctctools
four functions have been included that will guide the user, specific to each type of task. Individually running each function (e.g. writeScriptSPFI()
) will result in the creation and opening of an R script that includes the necessary functions specific to each topic. Some functions that are called within each script will rely on directory paths that point to data files (e.g. the hrj files). As the directory paths included in the scripts may not be correct for the user's computer, they will likely need updating. For this reason do not blindly execute the script in its entirety as it will likely fail.
writeScriptCalibrationTester()
writeScriptHRJ()
writeScriptSPFI()
writeScriptFP()
writeScriptISBM()
This document will be expanded as time allows.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.