tbl_df {tibble}R Documentation

S3 class: tbl_df

Description

A data frame tbl wraps a local data frame. The main advantage to using a tbl_df over a regular data frame is the printing: tbl objects only print a few rows and all the columns that fit on one screen, describing the rest of it as text.

Usage

tbl_df(data)

Arguments

data

a data frame

Methods

tbl_df implements four important base methods:

print

By default only prints the first 10 rows (at most 20), and the columns that fit on screen; see print.tbl_df

[

Never simplifies (drops), so always returns data.frame

[[, $

Calls .subset2 directly, so is considerably faster. Throws error if column does not exist.


[Package tibble version 1.0 Index]