Challenge the talent inside you, participate in Animate 2024!     Click here for details.

Indexing and Slicing Data Frames - English

19844 visits



Outline:

Shortcut key for assignment operator (<-) How to perform numeric indexing How to extract a row or column from a data frame How to retrieve multiple rows from a data frame How to combine objects to form a vector How to perform logical indexing on a data frame How to perform name indexing on a data frame How to slice a data frame using subset function How to select required columns (by name) from a data frame How to retrieve data using double square brackets