Get startedGet started for free

More linting

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

This exercise is part of the course

Defensive R Programming

View Course

Exercise instructions

  • Fix the function according to the feedback received.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

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

stats<-summarise_data(runif(10))
Edit and Run Code