IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Defensive R Programming

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# 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")
Modifica ed esegui il codice