CommencerCommencer gratuitement

More linting

The last exercise was a little bit too easy. Try your hand at this one!

Cet exercice fait partie du cours

Defensive R Programming

Afficher le cours

Instructions

  • Fix the function according to the feedback received.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Fix the code
summarise_data = function(values)
{
  c(mean(values),median(values))
}

stats<-summarise_data(runif(10))
Modifier et exécuter le code