[R] 使用 which 來讀取特定資料列

which 的用法,直接看例子很容易就可以理解:

which 可以用來選擇特定的資料行或列,但是我還不知道使用 which 跟直接在 “[]” 裡面給條件有甚麼差別?
舉例說明:

This entry was posted in R, 程式設計 and tagged , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.