Merged functions for resolving variables.
Creating R Code/plots