In this chapter, we have looked at various essential structures in working with R. We have looked at the data structures that are fundamental to using R optimally. We have also taken the view that structures such as for
loops can often be done better as vectorized operations. Finally, we have looked at the ways in which R can be used to create functions to simplify code.