Learn R Programming

tidytable (version 0.5.8)

as_tidytable: Coerce an object to a data.table/tidytable

Description

A tidytable object is simply a data.table with nice printing features. As such it can be used exactly like a data.table would be used.

Note that all tidytable functions automatically convert data.frames & data.tables to tidytables in the background. As such this function will rarely need to be used by the user.

Usage

as_tidytable(x)

Arguments

x

An R object

Examples

Run this code
# NOT RUN {
test_df <- data.frame(x = -2:2, y = c(rep("a", 3), rep("b", 2)))

test_df %>%
  as_tidytable()
# }

Run the code above in your browser using DataLab