introdsci / DataScience-mhoshko

DataScience-mhoshko created by GitHub Classroom
0 stars 0 forks source link

Try simplifying your code a bit? #2

Closed kcrisci94 closed 4 years ago

kcrisci94 commented 4 years ago

https://github.com/introdsci/DataScience-mhoshko/blob/ff76ee7b6c587c2251d2b9e1e2a441c56012408f/deliverable1.Rmd#L58

kcrisci94 commented 4 years ago

Maybe create a function that takes in an argument of which drug you are incrementing? May simplify your code, since there a bit of repetition