Show the code
library(thestats)
Zorunlu paket yükleniyor: 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
Show the code
library(ggplot2)
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ lubridate 1.9.3 ✔ tibble 3.2.1
✔ purrr 1.0.2 ✔ tidyr 1.3.0
✔ readr 2.1.4
── 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
Show the code
library(gridExtra)
Attaching package: 'gridExtra'
The following object is masked from 'package:dplyr':
combine
Show the code
<- list_score(region_names = "all", city_names = "Ankara",
data university_names = "all", department_names= "Industrial Engineering",
lang = "en", var_ids=c("X141", "X142", "X143", "X144", "X145", "X146","X147", "X148", "X149",
"X151", "X152", "X153", "X154", "X155", "X156", "X157", "X158", "X159"))
<- c("Industrial Engineering (English) (Scholarship)","Industrial Engineering (English)","Industrial Engineering(English)",
selected_university "Industrial Engineering (English) (Scholarship)","
Industrial Engineering(English)(Scholarship)","Industrial Engineering (Scholarship)","
Industrial Engineering (English) (Scholarship)","Industrial Engineering(English)(Scholarship)","Industrial Engineering (English) (Scholarship)",
"Industrial Engineering(English)(Scholarship)","Industrial Engineering (English)","Industrial Engineering(English)","Industrial Engineering (Scholarship)",
"Industrial Engineering (Scholarship)","Industrial Engineering (English) (Scholarship)","Industrial Engineering (English) (Scholarship)")
<-na.omit(data)
our_data
colnames(our_data) <- c("ID", "Year","Type","Program Code","University","Faculty","Department","choice_1st","choice_2nd",
"choice_3rd","choice_4th","choice_5th","choice_6th",
"choice_7th","choice_8th","choice_9th",
"placed_1st", "placed_2nd", "placed_3rd",
"placed_4th","placed_5th","placed_6th",
"placed_7th","placed_8th","placed_9th")
<- our_data %>% filter (Department %in% selected_university)
our_data print(head(our_data))
ID Year Type Program Code University Faculty
1 1041 2020 State 104112108 Gazi University Engineering faculty
2 1041 2019 State 104112108 Gazi University Engineering faculty
3 1041 2018 State 104112108 Gazi University Engineering faculty
4 1048 2020 State 104810529 Hacettepe University Engineering faculty
5 1048 2019 State 104810529 Hacettepe University Engineering faculty
6 1048 2018 State 104810529 Hacettepe University Engineering faculty
Department choice_1st choice_2nd choice_3rd choice_4th
1 Industrial Engineering (English) 57 103 108 102
2 Industrial Engineering(English) 61 82 75 94
3 Industrial Engineering(English) 60 93 116 144
4 Industrial Engineering (English) 176 201 208 154
5 Industrial Engineering(English) 126 115 147 122
6 Industrial Engineering(English) 128 142 212 170
choice_5th choice_6th choice_7th choice_8th choice_9th placed_1st placed_2nd
1 96 105 109 69 74 0 2
2 99 72 101 81 77 1 5
3 142 132 129 117 118 0 0
4 138 162 120 121 110 7 8
5 131 132 115 92 89 3 6
6 175 177 149 153 139 1 0
placed_3rd placed_4th placed_5th placed_6th placed_7th placed_8th placed_9th
1 2 4 3 6 1 2 5
2 0 4 7 2 4 2 2
3 3 3 1 3 1 2 0
4 9 4 8 15 5 3 4
5 7 10 11 8 4 2 1
6 4 4 4 3 6 5 7