In the last episode, I showed how R packages—also called libraries—can be loaded into the working environment. These packages contain useful functions. One that I use all the time is the summarise function in the dplyr package.
Previous posts in this series showed how I read the green speed data from the 2019 Women’s PGA Championship into the R working environment. The reason I want to have these speeds in the working environment is so I can have a look at how the green speeds were related to clipping volume that week.
Before continuing with reading in data and making calculations about green speed and clipping volume, I wanted to show how I set up RStudio on my computer, because I make a few customizations to how it looks after a fresh install.
It is convenient to write functions that will make calculations or produce specific output. In this rturf screencast, I demonstrate the creation of a brede function that when given two inputs, which should be the uphill and downhill ball roll distances in inches, returns the green speed in feet.
Continuing with the rturf series, this screencast shows how I would typically:
read a file of data into the working environment by first placing the file into a /data/ folder within the project directory
I made this screencast to show how I would typically get data into the R working environment.
This is a series about R for turfgrass, so for the example data file I chose one that includes morning green speed (stimpmeter) measurements from the 2019 KPMG Women’s PGA Championship at Hazeltine National Golf Club.