MyKo101
MyKo101
About
Posts
Packages
Experience
Publications
Light
Dark
Automatic
Posts
The lapply() family
This question on Reddit, got me thinking about the lapply() family of functions, and how a beginner might want to learn about them. Here is my take Introduction The easiest one to understand is lapply(), I’ll work through that and then extend to the others.
Last updated on Dec 6, 2020
11 min read
The New Base Pipe
Here, we’re going to take a quick look at the new pipe introduced in the development version of R 4.1.0, and compare it to the well-known %>% pipe from the {magrittr} package that is used throughout the {tidyverse}.
Last updated on Dec 6, 2020
8 min read
Convert all Character variables to Factors
Introduction First, let’s load up what we need! set.seed(15102020) library(tidyverse) #We'll use tidyverse functions library(magrittr) #A few extra pipes from magrittr library(lexicon) #For a word dictionary When dealing wth complex datasets, it is common that a variable may be stored as a character variable, when in reality what you want is a factor variable.
Last updated on Oct 15, 2020
7 min read
Getting a variable name in a pipeline
There is no greater staple of the {tidyverse} than the pipe, %>%, however not a lot of people understand what’s going on “under-the-bonnet” of the pipe. To be fair, not many people have to worry about it.
Last updated on Jul 24, 2020
7 min read
Deploy to GitHub Pages
Within git, the default branch is usually named master, however in recent times, the negative connotations of that word are coming to the forefront of a lot of people’s minds, and so they are wishing to diverge away from that kind of terminology.
Last updated on Jul 22, 2020
12 min read
Cite
×