EcologyR / RecruitNetP

Analysis of Recruitment Netwoks
https://ecologyr.github.io/RecruitNetP/
GNU General Public License v3.0
0 stars 0 forks source link

Write modular functions #7

Closed Pakillo closed 3 months ago

Pakillo commented 1 year ago

Hi @aliciamontesinos @jlgarridosan @VeruGHub

Good job! I've done some clean up

Try splitting up and writing more modular (i.e. shorter) functions. Ideally, one function must do one thing only. And then you can have wrapper functions that combine several minor functions. The latter are easier to understand, test, modify, etc.

Also, remember to include the package name before every function (e.g. dplyr::summarise)