R for Sport Scientists – Fundamentals Course: Subsetting - Complementary Training
R for Sport Scientists – Fundamentals Course: Subsetting

R for Sport Scientists – Fundamentals Course

Lecture 4: Subsetting

Subsetting (or indexing) allows you to extract or replace parts of the objects. There are three subsetting operators in R:
$, [, and [[.

Although R is very flexible in achieving these objectives, it can have its quirks particularly since the same subsetting methods can yield different results with different object types (i.e., when dealing with missing values, out of bounds indexes, and so forth).

In this lecture, I will explain to you how subsetting works, how you can replace (i.e., assign) parts of the object, remove parts, append objects, order, and filter. These operations are one of the most important ones in any analysis that you might perform later.

This lecture consists of four videos. Make sure to download the R script below which you can use to follow the lectures.

R Course

Ready to watch this course?
Take advantage of our promotional offer

Gain Necessary R Skills
and Advance Your Career

Take this CoursePromo Discount: 30% OFF


Go Annual and Get All Bonuses for FREE!

Join Us TodayAnd Instantly Save $2140

Premium Membership
$350 per year


Course Overview

Lecture 1: Introduction

Lecture 2: Installation

Lecture 3: Vectors

Lecture 4: Subsetting

Lecture 5: Control Flow

Lecture 6: Functions

I am a physical preparation coach from Belgrade, Serbia, grew up in Pula, Croatia (which I consider my home town). I was involved in physical preparation of professional, amateur and recreational athletes of various ages in sports such as basketball, soccer, volleyball, martial arts and tennis. Read More »

Welcome to Complementary Training Community! Forums R for Sport Scientists – Fundamentals Course: Subsetting

Tagged: ,

This topic contains 0 replies, has 1 voice, and was last updated by mm Mladen Jovanovic 2 years, 7 months ago.

You must be logged in to reply to this topic.