Summary
Hopefully, throughout this chapter, you learned a variety of methods and techniques to optimize a variety of functions. We covered how to use a wide range of R packages and functions to set up, solve, and visualize different optimization problems, so you should be ready to give your own minimization and maximization problems a try. Now that you are much more familiar with R and its packages for scientific computing, we are ready to move on to our last chapter, which will teach you to clean up and manage your data for efficient programming and analysis in R.