This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

Data_Frame examples

library(dplyr)
## 
## Attaching package: 'dplyr'
## 
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## 
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
a<-1:5
data_frame(a,b=a*2)
## Source: local data frame [5 x 2]
## 
##       a     b
##   (int) (dbl)
## 1     1     2
## 2     2     4
## 3     3     6
## 4     4     8
## 5     5    10
data_frame(a,b=a*2,c=1)
## Source: local data frame [5 x 3]
## 
##       a     b     c
##   (int) (dbl) (dbl)
## 1     1     2     1
## 2     2     4     1
## 3     3     6     1
## 4     4     8     1
## 5     5    10     1