(NOTE: This was done in R 4.3.1 using RStudio 2023.03.0.) Here’s the scenario: I have a variable (V1) from Country A with roughly ~1,000 responses that measures religious affiliation with…
Continue reading
Posts on how to do things in R.
(NOTE: This was done in R 4.3.1 using RStudio 2023.03.0.) Here’s the scenario: I have a variable (V1) from Country A with roughly ~1,000 responses that measures religious affiliation with…
Continue reading
I recently hired a panel survey company to conduct surveys in several countries around the world. With some of the questions, we gave participants the option to select “other” and…
Continue reading
Introduction I hate to admit that I’ve been using R exclusively for data analysis for about 5 or 6 years and am just now realizing that I likely have been…
Continue reading
R, like many software programs, likes to have a folder or directory on your computer to operate in. When you start R, depending on how you start it and whether…
Continue reading
CRAN (The Comprehensive R Archive Network) is a distributed set of servers that allow people to download the various R packages from a bunch of servers that are all “mirrors”…
Continue reading
R has pretty amazing capabilities for creating charts and graphs. One of the most common packages for this is ggplot2. However, it’s not the most intuitive package I have used…
Continue reading
I regularly need to find a specific case or set of cases that meet some criteria when analyzing data, often so I can modify those values for one reason or…
Continue reading
I regularly create variables while analyzing data and then find that I need to delete a variable I created. At times, I just want to get rid of a variable…
Continue reading
I ran into a situation where I needed to add a variable to a dataset. I knew that I was then going to modify some of the values in the…
Continue reading