Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
Getting started with tibbles
Creating tibbles
Subsetting
10. Extract columns by $
Summary

Instruction

Great! Now, we will extract a column from the tibble using the column's name. We'll use the $ operator to do this (just as you would with a data frame). If you wanted to extract the department column from the employees tibble, it would look like this:

employees$department

Exercise

Extract the product column from the orders tibble.

Stuck? Here's a hint!

Type:

orders$product