You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"text": "Pre-lecture Prep\n\nA. Install required packages\n\ninstall.packages(\"palmerpenguins\") # a package containing the `penguins` data set, which we'll use for plotting practice\ninstall.packages(\"tidyverse\") # a collection of packages used for data wrangling / manipulation and visualization (including {ggplot2})\n\n\n\nB. Create & organize your EDS-240-class-examples repository\nWe’ll be coding together quite a bit throughout this course. To stay organized, we’ll complete all of our in-class examples in one repository (repo). Setup your repository following these steps:\n\nCreate and clone a GitHub repository named EDS-240-class-examples (or something that makes sense for you). Step-by-step instructions are provided, below, if needed:\n\n\n\n\n\n\n\nStep-by-step instructions for creating and cloning a GitHub repo:\n\n\n\n\n\nCreate a remote (GitHub) repo:\n\nNavigate to your GitHub profile and click on Repositories (top menu bar)\nClick on the green New button in the upper right-hand corner\nGive it the name EDS-240-class-examples, and optionally, a short description. Select the radio button for Public repository (it should be selected by default). Initialize this repository with a README, then click Create repository.\nFrom your repo’s main page, click the green Code button and copy the URL to your clipboard\n\nClone your repo:\nYou may choose the IDE of your choice, though the instructions below describe a workflow for RStudio users.\n\nOpen up RStudio\nClick on the drop down menu next to the R project icon (top right corner)\nClick New Project… > Version Control > Git > paste your repo’s URL in the Repository URL: box and press Tab to auto fill the Project directory name field (it should automatically be named the same as your GitHub repo). Browse to select where on your computer you’d like your repo to be saved.\nClick Create Project\n\n\n\n\n\nCreate a folder for each week (e.g. week1/, week2/, week3/, etc.) inside your repository’s root directory to help keep all the various files that we’ll download / create organized. This consistent naming scheme will also make it easy to add large files (e.g. data files) to your .gitignore file, which is automatically created when you clone your repo.\nUpdate your .gitignore file to prevent yourself from accidentally committing data files (GitHub limits the size of files allowed in repos). Open your .gitignore file and add the following:\n\n\n# ignore any folder named `data/` within folders named `week*` (* acts as a wildcard)\n/week*/data/\n\n\nFill out your repo’s README, referencing the MEDS README Guidelines.\n\n\n\nC. Download the .qmd template\nTemplate .qmd files will be provided alongside (most) lecture slides to help keep us organized and on track throughout class. They are available for download directly from GitHub at the link(s) provided in the Lecture Materials table (below). Look for the download button at the top right corner of the file (it looks similar to this, ). Please download all necessary templates and save them to the appropriate EDS-240-data-viz-examples/weekX folder before each class."
3122
+
"text": "Pre-lecture Prep\n\nA. Install required packages\n\ninstall.packages(\"palmerpenguins\") # a package containing the `penguins` data set, which we'll use for plotting practice\ninstall.packages(\"tidyverse\") # a collection of packages used for data wrangling / manipulation and visualization (including {ggplot2})\n\n\n\nB. Create & organize your EDS-240-class-examples repository\nWe’ll be coding together quite a bit throughout this course. To stay organized, we’ll complete all of our in-class examples in one repository (repo). Setup your repository following these steps:\n\nCreate and clone a GitHub repository named EDS-240-class-examples (or something that makes sense for you). Step-by-step instructions are provided, below, if needed:\n\n\n\n\n\n\n\nNoteStep-by-step instructions for creating and cloning a GitHub repo:\n\n\n\n\n\nCreate a remote (GitHub) repo:\n\nNavigate to your GitHub profile and click on Repositories (top menu bar)\nClick on the green New button in the upper right-hand corner\nGive it the name EDS-240-class-examples, and optionally, a short description. Select the radio button for Public repository (it should be selected by default). Initialize this repository with a README, then click Create repository.\nFrom your repo’s main page, click the green Code button and copy the URL to your clipboard\n\nClone your repo:\nYou may choose the IDE of your choice, though the instructions below describe a workflow for RStudio users.\n\nOpen up RStudio\nClick on the drop down menu next to the R project icon (top right corner)\nClick New Project… > Version Control > Git > paste your repo’s URL in the Repository URL: box and press Tab to auto fill the Project directory name field (it should automatically be named the same as your GitHub repo). Browse to select where on your computer you’d like your repo to be saved.\nClick Create Project\n\n\n\n\n\nCreate a folder for each week (e.g. week1/, week2/, week3/, etc.) inside your repository’s root directory to help keep all the various files that we’ll download / create organized. This consistent naming scheme will also make it easy to add large files (e.g. data files) to your .gitignore file, which is automatically created when you clone your repo.\nUpdate your .gitignore file to prevent yourself from accidentally committing data files (GitHub limits the size of files allowed in repos). Open your .gitignore file and add the following:\n\n\n# ignore any folder named `data/` within folders named `week*` (* acts as a wildcard)\n/week*/data/\n\n\nFill out your repo’s README, referencing the MEDS README Guidelines.\n\n\n\nC. Download the .qmd template\nTemplate .qmd files will be provided alongside (most) lecture slides to help keep us organized and on track throughout class. They are available for download directly from GitHub at the link(s) provided in the Lecture Materials table (below). Look for the download button at the top right corner of the file (it looks similar to this, ). Please download all necessary templates and save them to the appropriate EDS-240-data-viz-examples/weekX folder before each class."
"text": "Pre-lab Prep\n\n\n\n\n\n\nTODO\n\n\n\n\nupdate dataset? maybe with a little less cleaning\nkickstart HW #1\n\n\n\n\nA. Install required packages\n\ninstall.packages(\"here\") # for reproducible, relative file paths\ninstall.packages(\"janitor\") # tools for cleaning dirty data\ninstall.packages(\"usdata\") # demographic data on the United States at the county and state levels spanning multiple years.\n\n\n\nB. Download necessary data\nDownload fracking data (registryupload_1.csv) from Google Drive and save it to your class repo in the following location: EDS-240-class-examples/week1/data/registryupload_1.csv\n\n\n\n\n\n\nWhy are we downloading from Google Drive and not directly from FracFocus?\n\n\n\n\n\nThese data were originally downloaded as a zip file from FracFocus in November 2023 when they were still quite messy. Since then, FracFocus has published cleaner versions of these data, which is great, but also defeats the purpose of this exercise . For this reason, we’ll be working with this saved version of the data, rather than downloading directly from FracFocus’s data download page.\n\n\n\n\n\nC. Add data to .gitignore\nWe don’t want to push any data in our repo to GitHub (GitHub enforces file size limits, and you’ll run into some serious headaches when you try to push a file that’s too big). To avoid doing this, we can add our data files to our .gitignore file, which, as the name implies, is a collection of files that we want Git to ignore. Open up your .gitignore file and add the following line (anywhere is fine, but it makes sense to add it beneath the last line):\n\n\n\n.gitignore\n\n# ignore any folder named `data/` within folders named `week__` (* acts as a wildcard)\n/week*/data/\n\n\nNotice that when you Save your modified .gitignore file, untracked data files at the specified file path disappear from your Git tab in RStudio, and a modified .gitignore file appears in it’s place (this is what we want!). Stage / add, commit, and push .gitignore.\n\n\n\n\n\n\nA gif of this whole process (in case it’s helpful!)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAn example repo with three folders: week1/, week2/, and other-stuff/. Each of those folders has a subfolder named data/, and each data/ folder contains a .csv file. Adding the line, /week*/data/ to the .gitignore tells Git to ignore folders (and their contents) named data/ that are within a parent folder named week__ (the * acts as a wildcard). If we wanted to ignore all three data/ folders (including other-stuff/data/), we can instead include /*/data/ to our .gitignore.\n\n\n\n\n\n\nD. Prepare a week1-lab.qmd file\nAdd a new blank file to your class repo – you’ll complete your lab exercises here. For organization’s sake, it should live in the following location: EDS-240-class-examples/week1/week1-lab.qmd. Fill out the necessary YAML information (title, author, date + any other information you find helpful)."
3136
+
"text": "Pre-lab Prep\nComing soon!\n\nA. Install required packages\n\ninstall.packages(\"here\") # for reproducible, relative file paths\ninstall.packages(\"janitor\") # tools for cleaning dirty data\ninstall.packages(\"usdata\") # demographic data on the United States at the county and state levels spanning multiple years.\n\n\n\nB. Download necessary data\nDownload fracking data (registryupload_1.csv) from Google Drive and save it to your class repo in the following location: EDS-240-class-examples/week1/data/registryupload_1.csv\n\n\n\n\n\n\nNoteWhy are we downloading from Google Drive and not directly from FracFocus?\n\n\n\n\n\nThese data were originally downloaded as a zip file from FracFocus in November 2023 when they were still quite messy. Since then, FracFocus has published cleaner versions of these data, which is great, but also defeats the purpose of this exercise . For this reason, we’ll be working with this saved version of the data, rather than downloading directly from FracFocus’s data download page.\n\n\n\n\n\nC. Add data to .gitignore\nWe don’t want to push any data in our repo to GitHub (GitHub enforces file size limits, and you’ll run into some serious headaches when you try to push a file that’s too big). To avoid doing this, we can add our data files to our .gitignore file, which, as the name implies, is a collection of files that we want Git to ignore. Open up your .gitignore file and add the following line (anywhere is fine, but it makes sense to add it beneath the last line):\n\n\n\n.gitignore\n\n# ignore any folder named `data/` within folders named `week__` (* acts as a wildcard)\n/week*/data/\n\n\nNotice that when you Save your modified .gitignore file, untracked data files at the specified file path disappear from your Git tab in RStudio, and a modified .gitignore file appears in it’s place (this is what we want!). Stage / add, commit, and push .gitignore.\n\n\n\n\n\n\nTipA gif of this whole process (in case it’s helpful!)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAn example repo with three folders: week1/, week2/, and other-stuff/. Each of those folders has a subfolder named data/, and each data/ folder contains a .csv file. Adding the line, /week*/data/ to the .gitignore tells Git to ignore folders (and their contents) named data/ that are within a parent folder named week__ (the * acts as a wildcard). If we wanted to ignore all three data/ folders (including other-stuff/data/), we can instead include /*/data/ to our .gitignore.\n\n\n\n\n\n\nD. Prepare a week1-lab.qmd file\nAdd a new blank file to your class repo – you’ll complete your lab exercises here. For organization’s sake, it should live in the following location: EDS-240-class-examples/week1/week1-lab.qmd. Fill out the necessary YAML information (title, author, date + any other information you find helpful)."
0 commit comments