Workshop 5: Programming in
QCBS R Workshop Series
The QCBS R Workshop Series is a series of 10 workshops that walks participants through the steps required to use R for a wide array of statistical analyses relevant to research in biology and ecology. These open-access workshops were created by members of the QCBS both for members of the QCBS and the larger community.
The content of this workshop has been peer-reviewed by several QCBS members. If you would like to suggest modifications, please contact the current series coordinators, listed on the main Github page.
0.1 Code of conduct
The QCBS R Workshop Series and the QCBS R Symposium are venues dedicated to providing a welcoming and supportive environment for all people, regardless of background or identity.
Participants, presenters and organizers of the workshop series and other related activities accept this Code of Conduct when being present at any workshop-related activities.
We do not tolerate behaviour that is disrespectful or that excludes, intimidates, or causes discomfort to others.
We do not tolerate discrimination or harassment based on characteristics that include, but are not limited to, gender identity and expression, sexual orientation, disability, physical appearance, body size, citizenship, nationality, ethnic or social origin, pregnancy, familial status, genetic information, religion or belief (or lack thereof), membership of a national minority, property, age, education, socio-economic status, technical choices, and experience level.
It applies to all spaces managed by or affiliated with the workshop, including, but not limited to, workshops, email lists, and online forums such as GitHub, Slack and Twitter.
0.1.1 Expected behaviour
All participants are expected to show respect and courtesy to others. All interactions should be professional regardless of platform: either online or in-person. In order to foster a positive and professional learning environment we encourage the following kinds of behaviours in all workshop events and platforms:
- Use welcoming and inclusive language
- Be respectful of different viewpoints and experiences
- Gracefully accept constructive criticism
- Focus on what is best for the community
- Show courtesy and respect towards other community members
0.1.2 Unacceptable behaviour
Examples of unacceptable behaviour by participants at any workshop event/platform include:
- written or verbal comments which have the effect of excluding people on the - basis of membership of any specific group;
- causing someone to fear for their safety, such as through stalking or intimidation;
- violent threats or language directed against another person;
- the display of sexual or violent images;
- unwelcome sexual attention;
- nonconsensual or unwelcome physical contact;
- insults or put-downs;
- sexist, racist, homophobic, transphobic, ableist, or exclusionary jokes;
- incitement to violence, suicide, or self-harm;
- continuing to initiate interaction (including photography or recording) with - someone after being asked to stop;
- publication of private communication without consent.
Since 2014, several QCBS members contributed to consistently and collaboratively develop and update this workshop, as part of the Learning and Development Award from the Québec Centre for Biodiversity Science. They were:
Contributed with changes to the presentation: Pedro Henrique Pereira Braga, Parnian Pourtaherian, Kate Sheridan, Katherine Hébert, Gabriel Muñoz, Marie-Hélène Brice
Contributed with changes to the written material: Pedro Henrique Pereira Braga, Gabriel Muñoz
Contributed by reporting issues and suggesting modifications:
0.4 Objectifs d’apprentissage
Cet atelier se concentre sur la programmation de base en R.
Vous apprendrez à utiliser les méthodes du flux de contrôle (boucles
for, fonctions de la famille
apply()) pour éviter la répétition du code, faciliter l’organisation et effectuer des simulations.
Vous apprendrez également à écrire vos propres fonctions, et des astuces pour programmer efficacement.
- Reconnaître le flux de contrôle ;
- Se familiariser avec les tests de conditions et les itérations ;
- Développer vos premières fonctions en
- Découvrir comment accélérer votre code ;
- Démonstration de paquets
Rutiles pour les biologistes.