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:
x <- c(12,7,3,4,2,18,2,54,-21,8,-5,NA)
result.mean <- mean(x)
print(result.mean)
## [1] NA
result.mean <- mean(x,na.rm = FALSE)
print(result.mean)
## [1] NA
x <- c(12,7,3,4.2,18,2,54,-21,8,-5,NA)
result.median <- median(x)
print(result.median)
## [1] NA
median(x)
## [1] NA
result.median <- median(x,na.rm = TRUE)
print(result.median)
## [1] 5.6
library(readr)
ChildrenAsthma_Survey_in_ <- read_csv("C:/Users/singleton1097/Downloads/ChildrenAsthma Survey(in).csv", show_col_types = FALSE)
## New names:
## • `` -> `...1`
View(ChildrenAsthma_Survey_in_)
You can also embed plots, for example:
Note that the echo = FALSE
parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.