Publications by Jacob Martin

DS 2870 - Strava Line Graphs

11.09.2023

Data Cleaning/Prep We will start by doing a little data cleaning to get the data in a form we’ll need it in for this example. You might not have seen these tools before. Don’t worry, you’re not expected to at this time, but you’ll have seen as least most of these by the end of the semester! Data description The bike_full data set has 8 ...

4822 sym 7 img

DS 2870 Using Packages

08.09.2023

Installing packages Loading Packages Packages in R: Getting Additional Content Jacob Martin DS 187 Installing packages Some functions, datasets, and tools we will be using don’t come with the default R experience. We need some DLC to access the extra tools we need. These extra tools are stored in what R calls packages, which you can ge...

2551 sym 2 img

DS 0870 - My First Rmarkdown Script

08.09.2023

What we are currently looking at is called an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com. When you click the Knit button a document will be generated that includes both content as well as the output of any embed...

4338 sym

DS 2870 Working with Functions in R

08.09.2023

Functions and Arguments NA: The Missing Value Getting Help inside RStudio Functions in R Jacob Martin STAT 187 Same setup chunk as before Functions and Arguments Functions In the previous Rmarkdown file, we looked at creating and saving objects, either alone or in a vector. This document will focus on functions....

7169 sym Python (1854 sym/56 pcs) 2 img

DS 2870 - Pipes in R

08.09.2023

Multiple Steps and Nested Functions Let’s say we want to use R to find the following: \[\sqrt{ | \log_{10}{0.75} |}\] and round the result to two decimal places. How can we achieve that? Step-by-step we need to: Find the log of 0.75 Take the absolute value Square root the result Round the answer to 2 decimal places How would that look in R? Ho...

2466 sym Python (1241 sym/8 pcs) 2 img 1 tbl