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 <- data.frame(
ID = 1:10,
Name = c("Alice", "Bob", "Charlie", "David", "Emily", "Frank", "Grace", "Henry", "Isabella", "Jack"),
Age = c(25, 32, 28, 41, 29, 35, 27, 38, 31, 26),
City = c("New York", "Los Angeles", "Chicago", "Houston", "Philadelphia", "Phoenix", "San Antonio", "San Diego", "Dallas", "San Jose")
)
data
## ID Name Age City
## 1 1 Alice 25 New York
## 2 2 Bob 32 Los Angeles
## 3 3 Charlie 28 Chicago
## 4 4 David 41 Houston
## 5 5 Emily 29 Philadelphia
## 6 6 Frank 35 Phoenix
## 7 7 Grace 27 San Antonio
## 8 8 Henry 38 San Diego
## 9 9 Isabella 31 Dallas
## 10 10 Jack 26 San Jose
summary(data$Age)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 25.00 27.25 30.00 31.20 34.25 41.00
You can also embed plots, for example: