Please Login To Continue

Subsetting Vectors

Lesson 7 of 16 • 3 upvotes • 11:32mins

Avatar

Rohit Kumar Singh

In this lesson, we'll see how to extract elements from a vector based on some conditions that we specify. For example, we may only be interested in the first 20 elements of a vector, or only the elements that are not NA, or only those that are positive or correspond to a specific variable of interest. By the end of this lesson, you'll know how to handle each of these scenarios.

Continue on app
1

Course Overview

2:34mins

2

Basic Building Blocks

9:44mins

3

Workspace and Files

8:23mins

4

Sequences and Numbers

6:12mins

5

Vectors

9:53mins

6

Missing Values

5:35mins

7

Subsetting Vectors

11:32mins

8

Matrices and Data Frames

8:19mins

9

Logic

9:39mins

10

Functions

11:36mins

11

Lapply and Sapply

9:05mins

12

Vapply and Tapply

9:08mins

13

Looking at Data

9:20mins

14

Simulation

9:49mins

15

Date and Time in R

8:31mins

16

Base Graphics

10:57mins

Crack Programming with Unacademy

Get subscription and access unlimited live and recorded courses from India's best educators
Structured syllabus
Structured syllabus
Daily live classes
Daily live classes
Ask doubts
Ask doubts
Tests & practice
Tests & practice

Similar Plus Courses

thumbnail
ENROLL
HinglishPolity, Governance & IR

Comprehensive Governance for UPSC CSE 2025 - 26

Dr Sidharth Arora

Unacademy is India’s largest online learning platform. Download our apps to start learning


Starting your preparation?

Call us and we will answer all your questions about learning on Unacademy

Call +91 8585858585
Company
About usShikshodayaCareersBlogsPrivacy PolicyTerms and Conditions
Products
Learner appLearner appEducator appEducator appParent appParent app