Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Getting started with tibbles
Creating tibbles
Subsetting
11. Extract columns by name and [[
Summary

Instruction

Another way to extract a column from a tibble is by using the column name inside [[ operators. If we would like to extract the department column from the employees tibble using this method, we would write:

employees[["department"]]

Don't forget the quotes!

Exercise

Extract the product column from orders using the column name and the [[ operator.

Stuck? Here's a hint!

Type:

orders[["product"]]