<- 1+1
x ^2 x
- 1
-
Calculate 1+1 and assign it to the variable
x
. - 2
-
Calculate the square of
x
.
Practical Computing for Evolutionary Biologists and Ecologists
Welcome to EE BIOL C234: Practical Computing for Evolutionary Biologists and Ecologists—or, as I like to say, a crash course in “computational Kung-Fu”.
This is the inaugural run of this course for me. So if I’m losing you, boring you, talking too fast, too slow, whatever – speak up! Your feedback is my compass.
Your left sidebar is your map to the course, showing all lectures—just a click away. On the right, you’ll see a table of contents specific to each lecture.
In this course, code examples will appear in blocks like this:
<- 1+1
x ^2 x
x
.
x
.
See the little circle on the right? Hover over it for a quick explanation of the code. When you hover over the code block itself, you’ll also spot a “copy” button—perfect for copying and pasting it into your R console to try it out yourself (fun fact: that’s how a large portion of coding is done in real life).
To show stepped progress, we’ll often add to existing code blocks. New additions are highlighted for clarity. For example:
<- 1+1
x ^2
x^3 x
x
.
You’ll find key computational tools and R packages highlighted in purple (e.g., GitHub
and ggplot2
). R functions are indicated in red and always include parentheses, such as sum()
.
Throughout the course, expect tips, tricks, and even a few fun facts sprinkled in. While not essential, these extras might give you an edge or deeper insight. Some of them are collapsible, so you can click to expand and explore them at your own pace. Look out for these in green boxes, like this:
I have included many exercises throughout the notes. These are your chance to practice what you’ve learned. Just fill in ____
with the correct answer and then run the code block to check your work. If you ever get stuck, the Solution is just next to it. For example,