Book Image

Introduction to R for Business Intelligence

By : Jay Gendron
Book Image

Introduction to R for Business Intelligence

By: Jay Gendron

Overview of this book

Explore the world of Business Intelligence through the eyes of an analyst working in a successful and growing company. Learn R through use cases supporting different functions within that company. This book provides data-driven and analytically focused approaches to help you answer questions in operations, marketing, and finance. In Part 1, you will learn about extracting data from different sources, cleaning that data, and exploring its structure. In Part 2, you will explore predictive models and cluster analysis for Business Intelligence and analyze financial times series. Finally, in Part 3, you will learn to communicate results with sharp visualizations and interactive, web-based dashboards. After completing the use cases, you will be able to work with business data in the R programming environment and realize how data science helps make informed decisions and develops business strategy. Along the way, you will find helpful tips about R and Business Intelligence.
Table of Contents (19 chapters)
Introduction to R for Business Intelligence
About the Author
About the Reviewers
R Packages Used in the Book
R Code for Supporting Market Segment Business Case Calculations

Creating a basic Shiny app

Shiny apps function within a specific folder and file structure. At a minimum, a Shiny app contains a user interface (client-side logic) and server-side logic. The client-side logic is the portion of the application that appears and functions in the user's Web browser. For example, a client-side feature of your app might be a slider bar used to input a value.

The server-side logic is any part of the application that executes on the web server hosting the application. For example, your app might receive the client-side slider bar value as an input to run a prediction from a linear model you developed and stored on the server. Recognizing this division between the client-side and server-side logic can help you understand the two files essential for a standard Shiny app:

  • A ui.R file containing all the client-side logic

  • A server.R file containing all the server-side logic

RStudio will automatically create ui.R and server.R files if you create a new project and choose New...