Abstract

This chapter is an introduction to R programming language and software to provide the basis for the reader to implement the methods presented in the following chapters. The chapter begins with instructions on how to obtain R and how to take your first steps into this environment. The main R data objects are presented (vectors, matrices, data frames, and lists). Interactions with external data to read them from file or write to file are also discussed. Notions of programming with loops, conditional executions, and functions are particularly important for working with dynamic models. Graphics and statistical capabilities are introduced briefly too. R packages provide functions to be used for applying methods and you will learn how to use these packages. Finally, two topics that are particularly important for our subject and are discussed include: how to use R to interact with a model programmed in a different language and how to reduce computing time.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.