洛克菲勒大學2021年生信課1:Introduction to R, session 1

R語言零基礎同學看過來了,Rockefeller University最新的生信公開課。因爲這個系列的課有PPT,所以我直接把PPT貼上來了,就不自己逐字逐句的打了(我好懶)。但是是英文的,學習的同時還可以練習一下英文。今天就先學習第一講吧(其實對於有基礎的同學來說,本篇內容比較淺了。適合零基礎,或者幾乎零基礎的同學學習)。
配套的視頻可以在youtube上看(國內的同學總有辦法的),視頻很長,3個多小時:https://www.youtube.com/watch?v=go8awfELv6U
視頻配套的PPT就是下面我貼的100多張圖片。如果有想要網頁版的同學可以嘗試這個鏈接:https://rockefelleruniversity.github.io/Intro_To_R_1Day/presentations/slides/introToR_Session1.html#1
視頻中展示的代碼下載地址:https://rockefelleruniversity.github.io/Intro_To_R_1Day/presentations/r_code/introToR_Session1.R

NOTE:上面一張PPT中的here超鏈接地址:Quick-R: Built-in Functions (statmethods.net),介紹了一部分常用的R的內置function。

NOTE: dir()命令只顯示文件的名稱。而dir(full.names=T)顯示的是文件路徑和名稱。

NOTE:視頻中有人提問,賦值的時候可以用“=”嗎?老師的回答是“Yes"。你可以用,但是在R裏,是"bad coding practice"。因爲it isn't clear directionality。不方便別人看代碼。

NOTE: 方括號是用來定位的(索引)。

NOTE: %in%符號是用來詢問vector A(左)中的元素是否存在於vector B(右)中。

【練習時間】上面練習的鏈接在這裏:Vectors (rockefelleruniversity.github.io)

【答案】見https://rockefelleruniversity.github.io/Intro_To_R_1Day/exercises/answers/vector_answers.html

【練習時間】https://rockefelleruniversity.github.io/Intro_To_R_1Day/exercises/exercises/matrices_exercise.html

【答案】參考https://rockefelleruniversity.github.io/Intro_To_R_1Day/exercises/answers/matrices_answers.html

【練習時間】https://rockefelleruniversity.github.io/Intro_To_R_1Day/exercises/exercises/factorsAndDataframes_exercise.html

【答案】https://rockefelleruniversity.github.io/Intro_To_R_1Day/exercises/answers/factorsAndDataframes_answers.html

【練習時間】https://rockefelleruniversity.github.io/Intro_To_R_1Day/exercises/exercises/DataInputOutput_exercises.html

【答案】https://rockefelleruniversity.github.io/Intro_To_R_1Day/exercises/answers/DataInputOutput_answers.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章