COMM 205 2018W2 Lecture 23 - For Canvas.pptx - COMM 205 Introduction to Management Information Systems Instructor Adam Saunders Lecture 23 Data

COMM 205 2018W2 Lecture 23 - For Canvas.pptx - COMM 205...

This preview shows page 1 - 6 out of 18 pages.

COMM 205 Introduction to Management Information Systems Instructor: Adam Saunders Lecture 23: Data Wrangling Part V March 27, 2019
Image of page 1
LOAD THE TIDYVERSE LIBRARY Before you start, make sure you have tidyverse loaded. To do so, first type library(tidyverse) Then, load the data frame companies (the one we used in the previous lecture). COMM 205: Introduction to Management Information Systems Lecture 23: Data Wrangling Part V
Image of page 2
THE NORTH AMERICAN STOCK MARKET DATA SET Go to R Studio and click File > Open File… and select the appropriate .rds file. You should see a box that says “Load R Object”. In the box, enter an appropriate title and hit OK . For this dataset, an appropriate title would be companies . Therefore, type companies in the box. COMM 205: Introduction to Management Information Systems Lecture 23: Data Wrangling Part V
Image of page 3
THE NORTH AMERICAN STOCK MARKET DATA SET You should then see something similar to the following message in the Console: Note that the readRDS() reads the rsd file by identifying its specific location . In this case, the file was uploaded from the Downloads folder. The output of the function is a data frame called companies . COMM 205: Introduction to Management Information Systems Lecture 23: Data Wrangling Part V
Image of page 4
if_else() FUNCTION Similar to IF in Excel, if_else() makes conditional assignments depending on the logical comparison provided. The syntax is: if_else(condition, true, false, missing = NULL) condition is a logical vector.
Image of page 5
Image of page 6

You've reached the end of your free preview.

Want to read all 18 pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes