Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Getting started with tibbles
2. Convert to a tibble
Creating tibbles
Subsetting
Summary

Instruction

Here comes the tibble to help us! Let's convert our data frame to a tibble. To do this, we use the command as_tibble(). For example, to convert a data frame named employees to a tibble, we write:

as_tibble(employees)

Exercise

Convert the df_orders data frame to a tibble using as_tibble(). Notice how R handles displaying a tibble. Important: R displays column types below column names in a tibble.

Stuck? Here's a hint!

Simply type:

as_tibble(df_orders)