Book Image

Learning Shiny

By : Hernan Resnizky
Book Image

Learning Shiny

By: Hernan Resnizky

Overview of this book

Table of Contents (19 chapters)
Learning Shiny
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Introducing R, RStudio, and Shiny
Index

Chapter 2. First Steps towards Programming in R

This chapter is a general introduction to classes, objects, and functions in R. Now, we now know that R is an object-oriented language. Conceptually, as any other language of its kind, R has three main elements, as follows:

  • Classes

  • Objects

  • Functions

This chapter will cover the following topics:

  • Object-oriented programming (OOP) concepts in R

  • Vectors and arrays

  • Lists

  • Decision making and looping constructs