3 ms·
In case you're interested in dealing with the data yourself, consult https://scrippso2.ucsd.edu/osub2sub-data.html https://scrippso2.ucsd.edu/osub2sub-data.html
by bluenose69 5y ago
In case you're interested in dealing with the data yourself, consult https://scrippso2.ucsd.edu/osub2sub-data.html https://scrippso2.ucsd.edu/osub2sub-data.html to identify CSV files, and try e.g. the following to plot a timeseries in R, and to show the results of linear and quadratic fits.
url <- "https://scrippso2.ucsd.edu/assets/data/o2_data/o2_daily/altoav.csv"
d <- read.csv(url, comment.char='%')
year <- d[,7]
O2 <- d[,3]
plot(year, O2, type="l")
# Linear fit
m <- lm(O2~year)
abline(m)
summary(m)
# Quadratic fit
m2 <- lm(O2~year+I(year^2))
lines(year, predict(m2), col=2)
summary(m2)