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




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

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




Be the first to comment

Leave a Reply

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