Category Archives: R

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

Updated dplyr Examples

Over the summer I made two posts about using the dplyr package.  The first was an example of the dplyr verbs applied to fish data.  The second was an example of modifications that I had made to lencat() to work better … Continue reading

Posted in R | Tagged , , , | 3 Comments

Changes to FSA — Size Structure

I have added a (very rough) first draft to the Size Structure chapter of the forthcoming Introductory Fisheries Science with R book on the book’s fishR webpage.  Accompanying this chapter are major changes to all of the proportional size distribution … Continue reading

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

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