Publications by Batbileg
Publish Document
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 3.4.4 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ✔ tidyr 1.3.0 ## ✔ purrr 1.0.2...
219 sym Python (8663 sym/12 pcs) 1 img
Batbileg-Final exam
install.packages("nycflights13") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3' ## (as 'lib' is unspecified) library(nycflights13) data(flights) # Question 1: How many flights arrived late each month? late_arrivals <- flights[flights$arr_delay > 5, ] late_arrivals_by_month <- table(format(late_arrivals$time_hour, "%Y-%m")...
614 sym R (8517 sym/24 pcs) 2 img
Exam
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.4 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.1 ## ✔ ggplot2 3.4.4 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ✔ tidyr 1.3.0 ## ✔ purrr 1.0.2...
236 sym R (6937 sym/13 pcs)
Publish Document
1. Fix typos found in Feature Engineering Data$model <- gsub("CAAD Disk Ultegra", "CAAD12 Disc Ultegra", Data$model) Data$model <- gsub("Syapse Carbon Tiagra", "Synapse Carbon Tiagra", Data$model) Data$model <- gsub("Supersix Evo Hi-Mod Utegra", "Supersix Evo Hi-Mod Ultegra", Data$model) ## Rows: 15,644 ## Columns: 13 ## $ order_date <dttm> 201...
165 sym
Homework_5
library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(readr) library(scales) ## ## Attaching package: 'scales' ## The following object is masked from 'package:re...
20 sym R (3438 sym/17 pcs)
Homework 4
install.packages("readr") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3' ## (as 'lib' is unspecified) install.packages("tidyr") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3' ## (as 'lib' is unspecified) library(readr) library(tidyr) stock_df <- read_csv("stock_df.csv") ## Rows: 5 Columns: 106 ## �...
12 sym R (1274 sym/9 pcs)
Homework 3
library("readxl") library("dplyr") ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library("scales") sales_summary <- read_excel("bike_orderlines.xlsx") sales_summary <- sales_sum...
9 sym R (1956 sym/6 pcs)
Homework_2
library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union library(readr) library(tidyr) dataset <- read_csv("Netflix.csv") ## Rows: 6234 Columns: 12 ## ── Column specific...
14 sym R (1282 sym/11 pcs)
Homework_1
install.packages("readxl") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3' ## (as 'lib' is unspecified) install.packages("dplyr") ## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.3' ## (as 'lib' is unspecified) library(readxl) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are m...
15 sym R (1905 sym/12 pcs)
Homework_09/25/2023
R Markdown 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...
591 sym 1 img