csgillespie / efficientR

Efficient R programming: a book
https://csgillespie.github.io/efficientR/
Other
721 stars 375 forks source link

minor wrong code in section 3.2 #297

Open arashHaratian opened 3 years ago

arashHaratian commented 3 years ago

in chapter 3, instead of seq_along(x) you used seq_len(n) which is wrong.