This is a demo of a simple targets workflow using the Palmer Penguins dataset (Horst, Hill, and Gorman 2020). This workflow supports my blog post on how to use a targets workflow.
We implement a targets workflow with the following objects:
file
loads the raw csv datadata
reads in the csv filexvar
,yvar
, andgroupvar
specifies which variables are of interest in the analysistable
provides a table of statistical summary for each variable of interestmodel
fits a simple linear modelplot
generates a scatter plot of the data with a line of the model running through it.
Supporting files not usually part of the targets workflow:
-
/scripts/initialise.R
shows you how to set up and how the csv files were generated. -
/scripts/interim.R
shows you …
Horst, Allison Marie, Alison Presmanes Hill, and Kristen B Gorman. 2020. Palmerpenguins: Palmer Archipelago (Antarctica) Penguin Data. https://doi.org/10.5281/zenodo.3960218.