Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Defensive R Programming

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# 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")
Code bewerken en uitvoeren