Category Archives: R

Posts that contain R code and describe how to do something in R.

Age-Length Keys in FSA

I have updated the age-length key related functions in FSA and the age-length key vignette.  The details are below.   Let me know if you have questions or suggestions. FSA Changes All code that used ageKey(), ageKeyPrep(), and ageKeyPlot() should … Continue reading

Posted in Administration, Fisheries Science, R | Tagged , , , | Leave a comment

Changes to FSA — Estimating Abundance

I mentioned previously, that I have been updating the Mark-Recapture vignettes.  That has morphed into a document that is an update of the Mark-Recapture Closed and Open vignettes and the depletion/removal vignettes and associated FSA functions.  Some of the changes … Continue reading

Posted in Administration, Fisheries Science, R | Tagged , , , , , , | 4 Comments

“Vignettes” Update

As a follow-up to my post about major changes to FSA and that some of the “old” vignettes are now out-of-date, here is a brief summary of new material in the draft book chapters (linked to below) that replaced the … Continue reading

Posted in Administration, R | Tagged , , , , , , , , , | 1 Comment

Modified lencat() — Increased Flexibility with dplyr

One of the first functions in the FSA package was lencat(), which served me well over the years. However, I have been bothered by the use of a formula and data= to identify a single column to be “transformed” and … Continue reading

Posted in Fisheries Science, R | Tagged , ,

dplyr Example #1

Hadley Wickam released the dplyr package in January 2014. Since then I have been itching to give it a try as it has been suggested to speed up some data manipulations and, more important to me, provide a singular framework … Continue reading

Posted in Fisheries Science, R | Tagged , , | 7 Comments

Visualizing Age-Length Keys — More

I recently posted on the addition of ageKeyPlot() to the FSA package for visualizing age-length keys. Since that post, I have added one more type of plot as illustrated below. This post should be considered as an extension of the … Continue reading

Posted in Fisheries Science, R | Tagged , , , ,

Visualizing Age-Length Keys

Lately, I have been interested in methods related to age-length keys. One aspect of this interest has been in visualizing age-length keys. I had seen various visualizations in publications and wanted to be able to reproduce those relatively efficiently. To … Continue reading

Posted in Fisheries Science, R | Tagged , , , , | 4 Comments

Videos of Simple Fisheries Analyses in R (for Teaching) I

I am teaching my Fisheries Science and Management course at Northland College this semester.  The science portion of the course is a fairly traditional treatment of population dynamic parameter estimation methods (using R with the FSA package, of course).  This semester … Continue reading

Posted in Fisheries Science, R | Tagged , , , | 7 Comments

Age Precision and Bias — Changes to FSA

Last week I taught part of a workshop for the Minnesota Chapter of the American Fisheries Society on “Analyzing Age Data in R” (materials are here). I like doing these workshops because they give me ideas for improving the FSA … Continue reading

Posted in Fisheries Science, R | Tagged , , , ,

Weisberg Growth Model

A fishR user asked me if I had Weisberg Linear Growth Model (LGM) vignette.  In the past, the Weisberg LGM referred to the fixed-effects models described in Weisberg (1993) and implemented in software that was written in XLISP-STAT and distributed … Continue reading

Posted in Fisheries Science, R, Statistics | Tagged , ,