Description Usage Arguments Value Examples
View source: R/tbl_frame.R View source: R/tbl_frame.R
Creates a data frame using non-standard evaluation
1 |
... |
Column vectors or expressions that reduce down to desired column vectors of data frame |
A tbl_data data frame
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
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.