Site icon R-bloggers

Efficiently Adding Gabelhouse Lengths and Relative Weights to a data.frame (using dplyr)

[This article was first published on fishR » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

In this post on RPubs, I demonstrate how to use new functions (psdAdd() and wrAdd()) in the FSA package, along with functions in the dplyr package, to efficiently add Gabelhouse length category and relative weight variables for all species in a data.frame.  This is a follow-up to my promise in this post.

Let me know what you think.


Filed under: Fisheries Science, R Tagged: Condition, Data Manipulation, dplyr, FSA, PSD/RSD, R, Relative Weight, Size Structure

To leave a comment for the author, please follow the link and comment on their blog: fishR » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.