powered by
Provides a 'tbl_df' class (the 'tibble') that provides stricter checking and better formatting than the traditional data frame.
tbl_df implements four important base methods:
tbl_df
By default only prints the first 10 rows (at most 20), and the columns that fit on screen; see print.tbl()
print.tbl()
[
Does not simplify (drop) by default, returns a data frame
[[
$
Calls .subset2() directly, so is considerably faster. Returns NULL if column does not exist, $ warns.
.subset2()
NULL
tibble() and tribble() for construction, as_tibble() for coercion, and print.tbl() and glimpse() for display.
tibble()
tribble()
as_tibble()
glimpse()
The S3 class tbl_df 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.
Useful links:
http://tibble.tidyverse.org/
https://github.com/tidyverse/tibble
Report bugs at https://github.com/tidyverse/tibble/issues
# NOT RUN { tibble(a = 1:26, b = letters) as_tibble(iris) # }
Run the code above in your browser using DataLab