My first report

A report generated using R, RStudio and knitr.

This report shows

Read in the Squid Data

squid = read.csv("squid.csv")

Make the squid “Sex” column 1=M and 2=F

squid$Sex = factor(squid$Sex, levels = c(1, 2), labels = c("M", "F"))

Make histograms

hist(squid$GSI, main = "Histogram of GSI values", xlab = "All GSI values")

hist(squid$GSI[squid$Sex == "M"], main = "GSI values for Male Squids", xlab = "GSI values")

hist(squid$GSI[squid$Sex == "F"], main = "GSI values for Female Squids", xlab = "GSI values")