Book Image

R Programming Fundamentals

By : Samik Sen
Book Image

R Programming Fundamentals

By: Samik Sen

Overview of this book

R Programming Fundamentals, focused on R and the R ecosystem, introduces you to the tools for working with data. To start with, you'll understand you how to set up R and RStudio, followed by exploring R packages, functions, data structures, control flow, and loops. Once you have grasped the basics, you'll move on to studying data visualization and graphics. You'll learn how to build statistical and advanced plots using the powerful ggplot2 library. In addition to this, you'll discover data management concepts such as factoring, pivoting, aggregating, merging, and dealing with missing values. By the end of this course, you'll have completed an entire data science project of your own for your portfolio or blog. The code bundle for this course is available at: https://github.com/TrainingByPackt/R-Programming-Fundamentals
Table of Contents (3 chapters)
Chapter 3
Data Management
Content Locked
Section 2
Factor Variables
Let us now get introduced to factor variables and its characteristics, when and why should one use it, and how to create factor variables in R. Let us also learn to identify if something is already a factor, the different levels and ways to change the level of a factor variable, and finally creating an ordered factor variables.