California coastal poll analysis and introduction to R for Coastal and Marine Management class at CSUCI 2019-11.
- Become acquainted with programming basics and reproducible research.
- Make your own R Markdown (aka Rmarkdown, Rmd) document.
- Learn some R basics by working on
inflammation.Rmd
. And time permitting... - Make interactive plots using
plotly::ggplot()
. - Perform some quality control (QC) on the MASTER DATA-Opinion Poll F2019 - Google Sheets by reviewing answers having responses > 1: ca-coast-poll/poll_log.csv at master · bbest/ca-coast-poll.
- Have fun with data science :) ...
- slides: Data Science for Marine Conservation
- video: What is R Markdown? (1 minute)
poll.Rmd
: poll analysisinflammation.Rmd
: Software Carpentry lesson
- Launch Rstudio in your web browser by clicking on the following:
- Make your first Rmd. In RStudio, File > New File > R Markdown... Name the file first and Save, which will get saved as
file.Rmd
. Click on the Knit. - Open
inflammation.Rmd
and click cursor line by line on R code and execute by enteringControl + Enter
keys.
- R for Data Science: the "bible" book free online
- DataCamp.com: learn R, Python & Data Science Online with badges (some free, most paid)
These resources were created when previously looking at this opinion poll 2019-02:
- calcoastpoll: R package
- Analyze Poll Data: vignette
- calcoastpoll-tutorial: bookdown
Here's how the necessary files were created in this repository for the "Launch Rstudio Binder" link to work:
library(holepunch)
write_compendium_description(
package = "ca-coast-poll",
description = "California coastal poll analysis and introduction to R")
# to write a description, with dependencies. Be sure to fill in placeholder text
write_dockerfile(maintainer = "Ben Best")
# To write a Dockerfile. It will automatically pick the date of the last
# modified file, match it to that version of R and add it here. You can
# override this by passing r_date to some arbitrary date
# (but one for which a R version exists).
generate_badge() # This generates a badge for your readme.
# ----------------------------------------------
# At this time 🙌 push the code to GitHub 🙌
# ----------------------------------------------
# And click on the badge or use the function below to get the build
# ready ahead of time.
build_binder()