Lesson 11 of 16 • 2 upvotes • 9:05mins
In this lesson, you'll learn how to use lapply() and sapply(), the two most important members of R's *apply family of functions, also known as loop functions. These powerful functions, along with their close relatives (vapply() and tapply(), among others) offer a concise and convenient means of implementing the Split-Apply-Combine strategy for data analysis.Each of the *apply functions will SPLIT up some data into smaller pieces, APPLY a function to each piece, then COMBINE the results.
16 lessons • 2h 20m
Course Overview
2:34mins
Basic Building Blocks
9:44mins
Workspace and Files
8:23mins
Sequences and Numbers
6:12mins
Vectors
9:53mins
Missing Values
5:35mins
Subsetting Vectors
11:32mins
Matrices and Data Frames
8:19mins
Logic
9:39mins
Functions
11:36mins
Lapply and Sapply
9:05mins
Vapply and Tapply
9:08mins
Looking at Data
9:20mins
Simulation
9:49mins
Date and Time in R
8:31mins
Base Graphics
10:57mins