Skip to Content
R Programming Fundamentals
book

R Programming Fundamentals

by Kaelen Medeiros
September 2018
Beginner
206 pages
4h 27m
English
Packt Publishing
Content preview from R Programming Fundamentals

Activity: Creating Data Summarization Tables

Scenario

You've been asked at work to dig deeper into the diamonds package because your boss is interested in investing company funds in diamonds. Create some explanatory data tables using base R and the dplyr methods.

Aim

To construct basic summary tables by recreating the ones given.

Prerequisites

You must have RStudio and R installed on your machine. The datasets package should also be installed.

Steps for Completion

  1. Load the dplyr package.
  2. Load the diamonds dataset, contained in the datasets package. Examine the dataset with str():

  1. Recreate the following summary tables using the table()
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R Programming Fundamentals

R Programming Fundamentals

Samik Sen, Marcin Dubel
Python for Programmers

Python for Programmers

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9781789612998Supplemental Content