# NOT RUN {
## 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
)
# }
Run the code above in your browser using DataLab