Publications by Zheng-Hui Chen

QF_5

06.04.2020

本週作業: 1. 研讀 while與 repeat 相關內容 2. 研讀 Advanced R: Control flow 3. 研讀The Quick Python Book 3rd Edition-2018-英文版 – Ch8: Control flow 4. 研究此份講義Python部分 5. 預習R: Functionals 6. 研讀Python: filter() 7. 研讀R: Filter() R functions if() ifelse() switch() for() next break while() repeat...

3391 sym R (12719 sym/272 pcs)

QF_4

24.03.2020

本週作業與進度: 研讀Advanced R: Functions 研讀電子書:The Quick Python Book, 3rd Edition, Chapter 9 ,書上程式可參閱 Ch09_code.txt 預習Advanced R: Functionals 研讀The Quick Python Book 3rd Edition-2018-英文版 – Ch6: Strings R functions return() formals() body() environment() do.call() Python functions ...

2444 sym R (10854 sym/193 pcs)

QF_week3

23.03.2020

本週作業與進度 QF_3.Rmd 檔案內容研讀 研讀Advanced R: Names and values 研讀Advanced R: Vectors 研讀Advanced R: Subsetting 下週進度 Data Frame Python Basic Type 編寫 R function 函數預設值,含 dot dot dot R functions class() dim() length() c() rnorm() vector() matrix() list() data.frame() typeof() [ ...

4299 sym R (23920 sym/701 pcs)

QF_9

16.06.2020

本週作業: 1. 研讀The Quick Python Book 3rd Edition-2018-英文版 – Ch10: Modules and scoping rules 2. 研讀The Quick Python Book 3rd Edition-2018-英文版 – Ch11: Python programs 3. 研讀The Quick Python Book 3rd Edition-2018-英文版 – Ch15: Classes and object-oriented programming 4. 研讀 @prooerty 裝飾器的功能 5. 研�...

2120 sym R (9141 sym/151 pcs) 1 img

PyFinance2

01.04.2021

📖研習進度 串列(list) Python中的list是由『有序(ordered)』的元素(element)構成。 與R的list相同,皆可包含不同型別的元素在裡頭(異質性)。 為『可變(mutable)』的資料型態,支持『原地修改(modify in place)』 list長度可變,可嵌套(nested) 由[]建立list 可視為『物件參考的陣�...

3434 sym R (15984 sym/571 pcs) 1 tbl

PyFinance1

03.03.2021

📖研習進度 : 安裝Anaconda環境 pip與conda不同 建立虛擬環境(Virtual Environment) Conda Commands 參考網址:https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/index.html 重要指令整理: ## Creating and Removing an environment with commands $conda create --name NCCU109_2 python=3.9 $conda remove --name ...

3028 sym R (6303 sym/228 pcs) 3 img

PyFinance3

30.03.2021

📖研習進度 while loop while 條件式: 主程式區塊 else: # 非必須 後置程式區塊 # 非必須 條件式:布林運算式,其結果為True或是Falese 只要條件式為True,主程式區塊就會反覆執行 當條件式為False時,while迴圈會執行後置程式區塊,然後終止 n = 9 r = ...

2015 sym R (6080 sym/172 pcs)

PyFinance4

07.04.2021

Defining Function 如果函數沒有return敘述,則預設會回傳 None。 Function annotations are completely optional metadata(元數據) information about the types used by user-defined functions. Function annotations are usually used for type hints: for example, this function is expected to take two int arguments and is also expected to h...

3169 sym R (15355 sym/254 pcs)

PyFinance6

26.05.2021

本週作業: 1. 研讀The Quick Python Book 3rd Edition-2018-英文版 – Ch10: Modules and scoping rules 2. 研讀The Quick Python Book 3rd Edition-2018-英文版 – Ch11: Python programs 3. 研讀The Quick Python Book 3rd Edition-2018-英文版 – Ch15: Classes and object-oriented programming 4. 研讀 @prooerty 裝飾器的功能 5. 研�...

2860 sym R (15771 sym/237 pcs) 3 img

PyFinance5

04.05.2021

local、nonlocal與global變數 local:局部變數 def fact(n): '''回傳參數n的階乘值''' r = 1 while n > 0: r = r * n n = n - 1 return r fact(5) ## 120 函數內部參數r與n屬於fact()函數的 local 變數 函數內部對local變數的任何操作,對函數外部其他變數無任何影響(除非�...

2680 sym R (8451 sym/94 pcs) 3 img