Publications by TJLee
Publish Document
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...
603 sym 1 img
test
統計是什麼? Introduction 生活中的統計 weather forecast Map location lottery sport lottery Poll Cards probability Your grades Measure Survey Plots statistical inference software 變項 Statistics in life tjlee Fri Sep 09 20:45:42 2022 統計是什麼? Introduction 生活中的統計 ...
1292 sym R (2363 sym/14 pcs) 17 img 1 tbl
Document
Correlation Code example Statistics in life tjlee Sun Sep 11 14:35:36 2022 Correlation Code example #把你蒐集到的資料key入 x <- c(11,16,19,18,20,23,19,21,24,29) y <- c(23,26,34,29,33,27,23,36,30,40) ## C 固定值意思 ## x,y 兩個變項,比方身高體重,你有興趣的變項皆可 colors <- c("#FDAE61", ...
163 sym 5 img
Document
knitr::opts_chunk$set(echo = TRUE) knitr::include_graphics("C:/Users/wenzao/Downloads/1.jpg") 641654 ...
12 sym 1 img
Document
Aclass <- c(11,16,19,18,20,23,19,21,24,29) Bclass <- c(23,26,34,29,33,27,23,36,30,40) plot(Aclass, Bclass) abline(lm(Bclass~Aclass),col="skyblue") cor(Aclass, Bclass) ## [1] 0.6991015 An education researcher is interested in how variables, such as GRE (Graduate Record Exam scores), GPA (grade point average) and prestige of the undergraduat...
413 sym R (974 sym/9 pcs) 3 img
Document
05-18-In-class exercises-1 TJLee 2020-05-22 dta <- data.frame(Country = c("Taiwan")) library(rworldmap) ## Loading required package: sp ## ### Welcome to rworldmap ### ## For a short introduction type : vignette('rworldmap') library(countrycode) # a data.frame with the ISO3 country names plus a variable to # merge to the map data dta$Coun...
58 sym R (1055 sym/12 pcs) 1 img
Document
05-18-maps-hw1 TJLee 2020-05-20 #本篇使用老師2012的code再去進行數字的調整 ##實際調整只調整民意大於50及小於50來區分KMT與DDP # 以gvotes 變項所顯示 # 因為僅二分法所以直接對照wiki 分別對照各縣市填入 # install the package first library(maptools) ## Loading required package: sp ## Chec...
47 sym R (2105 sym/14 pcs) 1 img
Document
05-18-In-class exercises-2 TJLee 2020-05-19 library(hrbrthemes) ## NOTE: Either Arial Narrow or Roboto Condensed fonts are required to use these themes. ## Please use hrbrthemes::import_roboto_condensed() to install Roboto Condensed and ## if Arial Narrow is not on your system, please see https://bit.ly/arialnarrow dta <- read.csv("c...
59 sym R (2669 sym/21 pcs) 1 img 1 tbl
Document
05-18-In-class exercises-2 TJLee 2020-05-18 library(raster) ## Loading required package: sp library(rgdal) ## rgdal: version: 1.4-8, (SVN revision 845) ## Geospatial Data Abstraction Library extensions to R successfully loaded ## Loaded GDAL runtime: GDAL 2.2.3, released 2017/11/20 ## Path to GDAL shared files: C:/Users/Tjlee/Documents/R/w...
62 sym R (2707 sym/14 pcs) 3 img
Document
05-18-In-class exercises-1 TJLee 2020-05-18 library(lubridate) ## ## Attaching package: 'lubridate' ## The following object is masked from 'package:base': ## ## date startDate <- dmy("9-September-2019") endDate <- dmy("18-May-2020") endDate - startDate ## Time difference of 252 days as.period(startDate %--% endDate) ## [1] "8m 9d 0H 0...
54 sym R (302 sym/7 pcs)