This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
library(tidyverse)
## ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ──
## ✔ ggplot2 3.4.1 ✔ purrr 1.0.1
## ✔ tibble 3.2.1 ✔ dplyr 1.1.2
## ✔ tidyr 1.3.0 ✔ stringr 1.5.0
## ✔ readr 2.1.4 ✔ forcats 1.0.0
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
library(dplyr)
read_csv("DRAFT_Data607_Assignment2_Zainab.O.csv")
## Rows: 36 Columns: 5
## ── Column specification ────────────────────────────────────────────────────────
## Delimiter: ","
## chr (4): first_name, last_name, Movie, Rating
## dbl (1): ID
##
## ℹ Use `spec()` to retrieve the full column specification for this data.
## ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
## # A tibble: 36 × 5
## ID first_name last_name Movie Rating
## <dbl> <chr> <chr> <chr> <chr>
## 1 1 Titi NULL Barbie 5
## 2 1 Titi NULL Creed_III 3
## 3 1 Titi NULL Spider_Man 3
## 4 1 Titi NULL John_Wick_4 4
## 5 1 Titi NULL Little_Mermaid 4
## 6 1 Titi NULL Guardian NULL
## 7 2 Emmanuel Oladosu Barbie 5
## 8 2 Emmanuel Oladosu Creed_III 5
## 9 2 Emmanuel Oladosu Spider_Man 5
## 10 2 Emmanuel Oladosu John_Wick_4 5
## # ℹ 26 more rows
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.