Get startedGet started for free

Find the error (2)

Just as before, let's switch roles. It's up to you to see what unforgivable mistakes we've made. Go fix them!

This exercise is part of the course

Intermediate R

View Course

Exercise instructions

Correct the expression. Make sure that your fix still uses the functions rep() and seq().

Hands-on interactive exercise

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

# Fix me
seq(rep(1, 7, by = 2), times = 7)
Edit and Run Code