Data 607- Assignment 1

Author

Jeovany

Overview

This creates dataframe from the the kaggle dataset “Datasets of WEBTOON ORIGINALS,” and remove unnecessary variables. The dataset used is available in this repository that

library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.4     ✔ readr     2.1.6
✔ forcats   1.0.1     ✔ stringr   1.6.0
✔ ggplot2   4.0.1     ✔ tibble    3.3.1
✔ lubridate 1.9.4     ✔ tidyr     1.3.2
✔ purrr     1.2.1     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
url <- "https://raw.githubusercontent.com/Jeovany97/Data-607/refs/heads/main/Assignment1/webtoon_originals_en.csv"
webtoon_unedited <- read_csv(url)
Rows: 1840 Columns: 12
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (6): title, genre, authors, weekdays, status, synopsis
dbl (6): title_id, length, subscribers, rating, views, likes

ℹ 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.
webtoon_clean <- webtoon_unedited %>%
  select(-title_id, -authors, -rating, -synopsis)
head(webtoon_clean)
# A tibble: 6 × 8
  title                    genre weekdays length subscribers  views likes status
  <chr>                    <chr> <chr>     <dbl>       <dbl>  <dbl> <dbl> <chr> 
1 BLACK SURGE              ACTI… TUESDAY       3        6108 1.85e4  1280 ONGOI…
2 All-Class Awakening: Go… ACTI… MONDAY        4      101709 1.94e6 68903 ONGOI…
3 Reborn As the Character… ROMA… THURSDAY     24       49376 1.17e6 75484 ONGOI…
4 The Murdered Princess a… ROMA… MONDAY        8       21136 4.06e5 11006 ONGOI…
5 Insanely Radiant         ROMA… SATURDAY     16       33063 5.76e5 28589 ONGOI…
6 The Possessive Tyrant a… ROMA… WEDNESD…     28       35611 1.04e6 56613 ONGOI…