Here is the text answer to the first homework question.
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:
# Creating our first R object
x <- rnorm(10,100,4)
x
## [1] 104.80252 105.39658 94.51347 96.72692 100.11859 94.81735 104.45625
## [8] 95.01793 98.85376 105.97851
#This is how I input data into R
pq <- read.csv("/Users/gregorymatthews/Dropbox/LoyolaTeaching/introductionToBiostatistics/Spring2020/Rosner_7th_Data_Sets/ASCII-comma/FEV.DAT.txt")
#Renaming the variable names
names(pq) <- c("Id","Age","FEV","Hgt","Sex","Smoke")
hist(pq$Age)