Hi!
This week I learned a cool fact about Ethiopian wolves. Theyβve been caught red-handed licking nectar from red hot poker flowers and transferring pollen between plants, which means they might act as pollinators!
I also spent 243 536 minutes slogging through emails and ticking off boring administrative tasks (not cool at all) π₯±.
Meanwhile, I burned a few neurons while my body battled an unpleasant cold virus β so no code today, Iβm afraid. Instead, I wanted to talk about shortcuts.
For my BSc dissertation, I looked at the Steiner Tree Problem in graphs. Does that ring a bell? No? Great β I wasnβt entirely sure what I was doing either. But, to simplify, itβs one of those βwhatβs the shortest possible way to connect all the pointsβ problems. This is ironic (and somewhat funny) because Iβm the kind of person who always picks the longest route. I think my brain just didnβt get the memo when they were handing out algorithms for simplifying lifeβ¦
So, it may not surprise you to hear that I didnβt learn about most useful R shortcuts until my masterβs degree β but Iβve been using them ever since.
I will reveal this secret knowledge in a second, but if you want to know more about the Steiner Tree Problem and related topics, check out this.
If youβre just looking for something entertaining and need a break from cute kitten videos, check out these slime moulds (though note that thereβs a small mistake in the title β slime moulds are protists, not fungi πβπ«).
Okay, enough rambling β Iβll keep it short and sweet. Here are the shortcuts:
Ctrl + L: Clears your console. It does a far better job than I do trying to clean my flat.
Ctrl + Up/Down Arrow: Access your command history. Alternatively, you can just use arrows in the console to access the most recent commands.
Tab: Autofill.
Ctrl + Enter: Run your code.
Command + Shift + C: Comment or uncomment your lines.
What I love about these shortcuts is how they make you look like a cool kid, even if you barely know how to load a CSV file.
I think that you can go through your relying only on these 5 shortcuts, but hey, if would like to see more, check out this handy R cheat sheet π«.
Carpe diem,
Agnes
PS: Here is the survey in which you can tell me what R topic you find particularly confusing and why you want to learn it so that we can shape this space together!