R Fundamentals Exercises

These exercises are designed to solidify our understanding of the fundamental programming framework in R for tasks associated with data science. These tasks will require us to use loops and if statements, read external files, and perform arithmetic operations.

We’ll work with two datasets regarding the size, weight, and age of fish. These will be loaded from external sources and combined into a single data frame. We’ll then perform manipulations to practice the skills we’ve learned so far in base-R. All the tasks will be coded into the provided function definition. Outputs should be returned to the variables indicated. While the functions haven’t yet been discussed, this approach enhances the evaluation of the results and eliminates the need for any special coding.