One final work flow
In this final exercise, we'll combine all the components of the course into a complete work flow!
The first step represents the file load.R
– the name makes its intention obvious.
The second step represents the file graphics.R
. load.R
is loaded using the source()
function.
This exercise is part of the course
Defensive R Programming
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# The load.R file
library("readr")
library("readxl")
# Change to relative paths
battles<-read_csv("/home/repl/survival/input/battles.csv")
foes=read_xlsx("/home/repl/survival/input/foes.xlsx")