阿好伯
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
R & Python學習目錄 === > [color=#40f1ef][name=LHB阿好伯, Jan 26, 2019 10:05 PM][:earth_africa:](https://www.facebook.com/LHB0222/) ###### tags: `R & python` `R` `Python` ![](https://i.imgur.com/47HlvGH.png) 這系列相關文章在心中也蘊釀很久了 除了Excel我另外一個興趣就是R R的語法相較於Excel VBA 更好學習 相較於Python的2.X 或是 3.X 有眾多版本相容問題 我更喜歡使用R的簡單環境 使用過Rstudio後你會覺得學習使用R語言不是那麼的困難 在每次以Excel 與 R語言處理好一個個問題時 那份喜悅是不斷堆使我前進的動力 未來並不排斥Python 因為許多功能在 R 中並無法實現 希望未來能夠在跟大家分享相關資料 --- 網站所有文章皆為 H.B. Liu 撰寫,歡迎分享但勿轉貼 也可以到[**粉專私訊我**](https://www.facebook.com/LHB0222/) 喜歡我分享的內容也可以按讚追蹤一下我的粉專 幫我分享給所~~~有的朋友 \o/ 有所錯誤歡迎指教 > - [R學習目錄](/ABmg8mYtRVi-PFxCkp0EuA) ## 入門須知 - [軟體安裝_IED-Rstudio](/HgGK5N53Qsu_mmmLvFC1Mw) - 下載Rstudio - RStudio的介面介紹 - [編程風格指南](/49YB_TibQq2KoDYLJyciMg) - R編程風格指南 - 文檔名 : Test.R - 變數名稱(identifiers) - 句法 - 賦值 - 備註 - 自訂函數 - 後記 - fromatR_自動格式化R代碼 - [R基礎控制函數](/u3CKWSvvQHu6Ak5qYwzUBA) - 基礎控制函數 - 程式碼註解 # - 物件變數 - 工作位置 - 保存工作成果save() - 結束Rstudio - [安裝載入套件(package)](/bPjdSGHJQO-hAbq_4YeiFA) - 安裝載入套件(package) - 透過Rstudio - install.packages安裝;library載入 - 安裝Github上套件 - [多套件安裝與更新](/uLUg_vgeRGWfJYdstfepqw) - [R pacman套件管理工具](/Yhipi8hKSiCdy2dRmqz8Dg) - [常用套件紀錄](/Ib3dNEcyRbavZ_wmjX_lnw) - p_load()-安裝,載入和更新套件 - p_install() - 僅安裝套件 - GitHub安裝和加載套件 - p_temp() - 安裝臨時套件 - p_update() - 更新套件 - p_unload - 卸載套件 - p_depends() - 檢查依賴 - p_information() - 回傳套件資訊 - p_functions() - 回傳套件函數 - [R 語言_基本計算](/55b7rAotSO-fbh6tqDDgTA) - 四則運算 - 餘數和商數 - 次方或平方根 - 絕對值 - R的科學符號 e - 三角函數 - 四捨五入 - 近似函數 - 階乘 n! - 無限大 Infinity - Not a Number(NaN) - Not Available (缺失值,NA) - 缺失值處理 - 直接移除有缺失值的資料 - 使用平均數填補遺漏值 - K-Nearest Neighbours填補遺漏值 - Multivariate Imputation by Chained Equations (鍊式方程的多元插補,MICE) - [R 語言_向量物件](/ZSqtBEgxRgiIXjxwQdHnSA) - 有序數列 - : 序列符號( Sequence ) - 生成定序列seq() - 連接向量物件 c() 函數 - 重復向量物件rep( ) - 建立空向量numeric( )函數 - 建立亂數 sample() - 向量運算 - 常見運算 - 累積運算函數 - 向量差值運算函數 - 向量物件排序函數 - 向量物件特徵 - 向量長度 - 基本統計函數 - 分布 - 正態分布 - 均勻分布 - [多維數據矩陣(Matrix)與陣列(Array)](/KqHOdxkkSrKMPMAZpYr5Cw?both) - 矩陣Matrix - 合併向量成為矩陣 - 資料提取 df[row, col] - 相關函數 - 矩陣轉置 t(x) - 矩陣相乘 x %*% y - 修改或查詢 row | column名稱 - rownames(x)|colnames(x) - 矩陣處理套件-matricks - 簡單建立矩陣- m() - 快速建立垂直向量 - v() - [R 變數類型](/r2fDokEySs-oCK8RRqzZmA) - 判斷變數類型函數 class() - R 處理數值的限制 - 浮點數陷阱 - Data Frames資料框架 - 建立 Data Frames - 簡單數據處理 - 移除重複值 - 數據交叉比較 - [關係運算](/tC-jcj-rSpyFswoew-9p6g) - Relational Operators關係運算子 - Logical Operators 邏輯運算子 - Miscellaneous Operators 雜項運算子 - [Decision making 決策](/Nx-w7IKbTtm9vql-bfdCFQ) - [Conditionals 條件判斷](/vA_udmdTSnGmJGz43JqJAQ) - Conditionals 條件判斷 - IF Condition 如果判 - IF … ELSE…單層判斷 - IF…ELIF…ELSE…多層判斷 - 巢狀結構 - 使用 and、or 進行條件判斷-減少巢狀使用 - [時間資料處理](/H5ec_KE6SMWs8oPmcGCpsg) - 取得時間資訊 - 取得特定日期或時間資訊 - 單日期之文字格式轉換 - 包含時間資料之文字格式轉換 - 時間格式之運算 - lubridate套件更靈活處理R時間格式 - 判斷日期日期 - 簡單的函數來獲取日期或時間物件 - 時間的四捨五入與條件捨去、進位 - [使用 renv 進行 R 專案環境管理指南](/edqpYObsTy6PlrnXi1X2vw) - ## 繪圖系統 基本圖表介紹 先認識各類圖表你才會了解有哪些呈現方式 甚麼時候需要畫甚麼圖 - [一圖勝千表_數據可視化_基本圖表篇](/LphJAeGFTVKIMT-FP0giNg) - 柱狀圖(Bar Chart) - 折線圖(Line Chart) - 散佈圖(Scatter Chart) - 氣泡圖(Bubble Chart) - 雷達圖(Radar Chart) - 箱形圖(boxplot) - 小提琴圖(violin plot) - beeswarm(?蜜蜂圖?) - 馬賽克圖(Mosaic plot) - 樹狀圖(Treemapping) - 熱點圖(Heat map) - 等高線圖(Contour map, Topographic map) - 桑基圖(Sankey diagram) - 可視化線上服務 - PLOTDB色盲在可視化上遇到的問題 - [基礎繪圖 Base Plot](/4RWYkqvuRZa_mHHRN25-Wg) - [使用R繪製三元相圖(Ternary plot)結合等高線圖(topographic map)](/6TmtB3XwSbSaG_0HQe1gKA) - ggplot2 - [ggplot2入門筆記-1](/KI8qRuYjQNyan8POB9w_HQ) - 數據(Data)和映射(Mapping) - 基本圖形 - 視覺通道映射 - 顏色-colour - 點符號樣式-shape - 尺吋-size - 標籤文字角度-angle - 分組-group - 填充區域顏色-fill - [ggplot2推薦配置](/L6Y0JBFwSHWl5RIk_Tjmsg) - theme主題設定 - 可用主題theme_XXX() - 圖形配色 - 更改字體配置 - 更改字型 - extrafont - 更改字體大小 - ggeasy - [Rstudio 繪圖裝置修改-加速9倍ggplot2繪圖速度](/u7awRcm2TN-RwTmdLOtHdg) - [一招完美解決R語言畫圖與ggplot2中英混合字體格式](/71sUx-5ESM6oTvfchIpohA) - [ggplot2邊緣圖_ggExtra](/bimBjKUMSHqtDI3xh0HQdw) - [R語言ggplot2散佈圖衍生圖-2D bin plot](/k3jf1WFTSrqiTgipFVdCyg) # Project - [使用R(RStudio Cloud)語言擷取觀測資料查詢系統氣象資料](/cAVB2a4XRsC4SvAFhmygNQ) ![](https://i.imgur.com/QXrTF4N.jpg) -[R語言-股票套件quantmod & tidyquant](/S5L5O_vrREu2iLqpQblW3w) ![](https://i.imgur.com/spql6MN.jpg) -[R語言讀取TIF檔並轉成csv檔](/smreBrubRq-gCepnI18JXQ) ![](https://hackmd.io/_uploads/S1jIMIbUF.jpg) -[使用R Shiny抓取Google Sheet資料繪製圖片](/_FxwDfRATf-sQu2FzvKmOQ) - [R語言網路免費基礎資料與個人推薦書單](/1TgzGGWGT_KLSvkDOwDmTw) - [相關論壇](/t5ZqN58cQkWJ17-2YWHvZw) # Bio7_Supervised Image Classification with ImageJ and R in Bio7 ![](https://i.imgur.com/rWjlOBC.png) https://bio7.org/ # python - [Python IED安裝_Jupyter Notebook與常用快捷鍵](/xYtImhxbRWCEils6wKigEw?edit) - [Python基本認識與R的比較](/pJ43YRFgTaOkSQQ0Emncyg) - Python基本認識與R的比較 - 註解符號# - 變數命名 - 基本計算 - 四則運算 - 餘數和商數 - 次方或平方根 - 指派運算子 - 多重賦值 - 物件變數 - 參考資料與書籍 - [python 關係運算](/x8_6-9wGT4eu_WG9DTOiTg) - 關係運算子 - 邏輯運算子 - [30 Days of Python學習筆記](/iHngNtIBRP6Ao0hN0Fs-vA) - [Python網路免費基礎資料與個人推薦書單](/1WUVG1IbRMmL42z3CZxL7g) # [眾多免費資料](https://github.com/EbookFoundation/free-programming-books/) [電子書製作_電電轉換器](https://conv.denshochan.com/tw) ## [左手python,右手R](https://danzhuibing.github.io/left_python_right_r.html)

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully