Lesson 12 of 16 • 0 upvotes • 9:08mins
In the last lesson, you learned about the two most fundamental members of R's *apply family of functions: lapply() and sapply(). Both take a| list as input, apply a function to each element of the list, then combine and return the result. lapply() always returns a list, whereas| sapply() attempts to simplify the result.In this lesson, you'll learn how to use vapply() and tapply(), another important functions of the R's *apply family of functions.
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