逆光飛行的玉珮

导航

随笔分类 -  R

[R] [Johns Hopkins] R Programming -- week 3
摘要:library(datasets) head(airquality) #按月分組 s 0) print("positive") else print("negative") } x0) print("positive") else print("negative") } x Na #錯誤處理的思維 input甚麼,如何Call function 所期待的是甚麼,Output? message?... 阅读全文

posted @ 2019-02-17 15:42 逆光飛行的玉珮 阅读(255) 评论(0) 推荐(0)

[R] 繪圖 Par 函数
摘要:本篇內文主引用 https://zhuanlan.zhihu.com/p/21394945 之內容再稍加整理並參照下方有用資源 [rdocumentation] https://www.rdocumentation.org/packages/graphics/versions/3.5.2/topic 阅读全文

posted @ 2019-02-17 12:02 逆光飛行的玉珮 阅读(459) 评论(0) 推荐(0)

[R] [Johns Hopkins] R Programming -- week 4
摘要:#Generating normal distribution (Pseudo) random number x user time system.time(readlines("http://www.google.com")) #elapsed time < user time hilbert <- function(n){ i <- 1:n 1/outer(i -1, i, "+"... 阅读全文

posted @ 2019-02-13 01:59 逆光飛行的玉珮

[R] Lexical & Dynamic Scoping / Execution & Calling environments / Closures
摘要:Lexical Scoping :有Java繼承中呼叫子類時先生成父類的概念,呼叫函數後,系統會轉至其定義處,將其 environment 中所具有的東西(有些可能定義在外層)形成 Closure [閉包] Dynamic Scoping :呼叫處起算,逐漸往上層找 有閉包的lexical scop 阅读全文

posted @ 2019-02-10 03:20 逆光飛行的玉珮 阅读(139) 评论(0) 推荐(0)

[R] [Johns Hopkins] R Programming 作業 Week 2 - Air Pollution
摘要:Introduction Introduction For this first programming assignment you will write three functions that are meant to interact with dataset that accompanie 阅读全文

posted @ 2019-02-09 20:37 逆光飛行的玉珮 阅读(500) 评论(0) 推荐(0)

[R] t.test()
摘要:t.test(x, y = NULL, alternative = c("two.sided", "less","greater"), mu= 0, paired = FALSE, var.equal = FALSE, conf.level = 0.95, ...) 默認:two.sided雙邊檢驗 阅读全文

posted @ 2019-01-07 12:27 逆光飛行的玉珮 阅读(213) 评论(0) 推荐(0)