tbl_data_frame: Create tbl_data_frame

Description Usage Arguments Value Examples

View source: R/tbl_frame.R View source: R/tbl_frame.R

Description

Creates a data frame using non-standard evaluation

Usage

1

Arguments

...

Column vectors or expressions that reduce down to desired column vectors of data frame

Value

A tbl_data data frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## create data frame with two random variables
tbl_data_frame(
  a = rnorm(10),
  b = rnorm(10)
)

## create variables calculated using previous variables
tbl_data_frame(
  a = rnorm(10),
  b = rnorm(10),
  c = (a + b) / 2,
  d = a + b + c
)

mkearney/tbltools documentation built on May 14, 2019, 4:02 a.m.