Publications by Leo Tzang

Document

23.10.2023

R Markdown This data is the weekly closing prices for five US listed companies in 2019.Import datastock_df.csvand reshape it from wide to long format (stock_df_long) as in the fol-lowing: stock_df <- read.csv('stock/stock_df.csv') Including Plots You can also embed plots, for example: Note that the echo = FALSE parameter was added to the code chu...

376 sym 1 img

Hw04

23.10.2023

# Load the required libraries ## 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(tidyr) # Import the data from "stock_df.csv" stock_df <- read.csv("stock_df...

11 sym R (9670 sym/8 pcs)

Hw04

23.10.2023

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(tidyr) stock_df <- read.csv("stock_df.csv") head(stock_df) ## company X2019_week1 X2019_week2 X2019_we...

11 sym R (9410 sym/8 pcs)

hw3

19.10.2023

library(datasets) data("bike_orderlines_tbl") ## Warning in data("bike_orderlines_tbl"): data set 'bike_orderlines_tbl' not ## found summary("bike_orderlines_tbl") ## Length Class Mode ## 1 character character Use ‘bike_orderline_tbl’. install.packages(“dplyr”) install.packages(“scales”) library(dplyr) library(scal...

633 sym R (227 sym/4 pcs)

Document

10.10.2023

read_cvs (“Netlix.cvs”) write_file(“type,title,director,cast,country,rating,duration,listed_in”, file = “Netflix.csv”) data(“Netflix”) summary(Netflix) Netflix_copy <- Netflix names (Netflix_copy) names(Netflix_copy)[which(names(Netflix_copy) == “cast”)] <- “Actors” names(Netflix_copy) R Markdown This is an R Markdown docum...

878 sym 1 img

Hw2_20231010

10.10.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

HW1 補交 110035145 羅暐傑

05.10.2023

# Load up libraries:pacman library(readxl) if (!require("pacman")) install.packages("pacman") ## Loading required package: pacman library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats...

399 sym R (11071 sym/36 pcs) 1 img

110035145 羅暐傑 補教 hw1

05.10.2023

# Load up libraries:pacman library(readxl) if (!require("pacman")) install.packages("pacman") ## Loading required package: pacman library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats...

203 sym R (5484 sym/18 pcs) 1 img

Publish Document week 2 hw

03.10.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

bike assignment

26.09.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