data_frame

0th

Percentile

Build a data frame.

A trimmed down version of data.frame that:

  1. Never coerces inputs (i.e. strings stay as strings!).
  2. Never adds row.names.
  3. Never munges column names.
  4. Only recycles length 1 inputs.
  5. Evaluates its arguments lazily and in order.
  6. Adds tbl_df class to output.

Usage
data_frame(...)

data_frame_(columns)

Arguments
...
A set of named arguments
columns
A lazy_dots.
Aliases
  • data_frame
  • data_frame_
Examples
a <- 1:5
data_frame(a, b = a * 2)
data_frame(a, b = a * 2, c = 1)
data_frame(x = runif(10), y = x * 2)

# data_frame never coerces its inputs
str(data_frame(letters))
str(data_frame(x = diag(5)))

# or munges column names
data_frame(`a + b` = 1:5)
Documentation reproduced from package dplyr, version 0.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.