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.

Ready to watch this course?
Become a member and get unlimited access to all content on our website.

Get Instant Access to Our Knowledge Base

Start Your FREE Trial Now!

Find Out More

Navigation

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 »
free-memeber-button
free-memeber-button

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  Mladen Jovanovic 3 weeks ago.

You must be logged in to reply to this topic.