Learn R Programming

stevemisc (version 1.8.0)

tbl_df: Convert data frame to an object of class "tibble"

Description

tbl_df() ensures legacy compatibility with some of my scripts since the function is deprecated in dplyr. to_tbl() also added for fun.

Usage

tbl_df(...)

to_tbl(...)

Value

This function takes a data frame and turns it into a tibble.

Arguments

...

optional parameters, but don't put anything here. It's just there to quell CRAN checks.

Examples

Run this code

tbl_df(mtcars)
tbl_df(iris)

Run the code above in your browser using DataLab