Publications by Mwila Ndhlovu
Document
rm(list=ls()) library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ✔ tidyr...
1586 sym R (1920 sym/10 pcs)
Publish Document
rm(list=ls()) library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ ggplot2 3.4.3 ✔ tibble 3.2.1 ## ✔ lubridate 1.9.3 ✔ tidyr...
1586 sym R (1920 sym/10 pcs)
Document
INITIAL SET-UP rm(list=ls()) Premilinary: Data load-in and preparation # LOAD IN DATA (You need to change the file path) dat2 = readxl::read_excel("//Users//mwilandhlovu//Desktop//ECONS2000//World_data.xlsx", sheet = "Data") dat2 # CONVERT DATA FROM LONG TO WIDE FORM datw = spread(dat2, "Series Name", "2020") datw # RENAME VARIABLES datw = rena...
5367 sym R (5710 sym/51 pcs) 2 img
Improved
INITIAL SET-UP Premilinary: Data load-in and preparation # LOAD IN DATA (You need to change the file path) dat2 = readxl::read_excel("//Users//mwilandhlovu//Desktop//ECONS2000//World_data.xlsx", sheet = "Data") dat2 ## # A tibble: 1,302 × 3 ## `Country Name` `Series Name` `2020` ## <chr> <c...
5433 sym R (13994 sym/54 pcs) 2 img
Document
INITIAL SET-UP Premilinary: Data load-in and preparation # LOAD IN DATA (You need to change the file path) dat2 = readxl::read_excel("//Users//mwilandhlovu//Desktop//ECONS2000//World_data.xlsx", sheet = "Data") dat2 # CONVERT DATA FROM LONG TO WIDE FORM datw = spread(dat2, "Series Name", "2020") datw # RENAME VARIABLES datw = rename(datw, GHG = ...
5368 sym R (9563 sym/52 pcs) 2 img
Document
INITIAL SET-UP Premilinary: Data load-in and preparation # LOAD IN DATA (You need to change the file path) dat2 = readxl::read_excel("//Users//mwilandhlovu//Desktop//ECONS2000//World_data.xlsx", sheet = "Data") dat2 ## # A tibble: 1,302 × 3 ## `Country Name` `Series Name` `2020` ## <chr> <c...
5364 sym R (17861 sym/56 pcs) 2 img