摘要:library(datasets) head(airquality) #按月分組 s 0) print("positive") else print("negative") } x0) print("positive") else print("negative") } x Na #錯誤處理的思維 input甚麼,如何Call function 所期待的是甚麼,Output? message?...
阅读全文
摘要:本篇內文主引用 https://zhuanlan.zhihu.com/p/21394945 之內容再稍加整理並參照下方有用資源 [rdocumentation] https://www.rdocumentation.org/packages/graphics/versions/3.5.2/topic
阅读全文
摘要:#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, "+"...
阅读全文
摘要:Lexical Scoping :有Java繼承中呼叫子類時先生成父類的概念,呼叫函數後,系統會轉至其定義處,將其 environment 中所具有的東西(有些可能定義在外層)形成 Closure [閉包] Dynamic Scoping :呼叫處起算,逐漸往上層找 有閉包的lexical scop
阅读全文
摘要:Introduction Introduction For this first programming assignment you will write three functions that are meant to interact with dataset that accompanie
阅读全文
摘要:t.test(x, y = NULL, alternative = c("two.sided", "less","greater"), mu= 0, paired = FALSE, var.equal = FALSE, conf.level = 0.95, ...) 默認:two.sided雙邊檢驗
阅读全文