I got a revise and resubmit on a recent paper. We noted that we had some … Imputing Missing Data in R – miceRead more
R
R – Combining Data from Two Variables
(NOTE: This was done in R 4.3.1 using RStudio 2023.03.0.) Here’s the scenario: I have a … R – Combining Data from Two VariablesRead more
ChatGPT – checking for personally identifying information
I recently hired a panel survey company to conduct surveys in several countries around the world. … ChatGPT – checking for personally identifying informationRead more
R – importing data using haven
Introduction I hate to admit that I’ve been using R exclusively for data analysis for about … R – importing data using havenRead more
R – Finding and Setting Working Directory
R, like many software programs, likes to have a folder or directory on your computer to … R – Finding and Setting Working DirectoryRead more
R – changing mirror in RStudio
CRAN (The Comprehensive R Archive Network) is a distributed set of servers that allow people to … R – changing mirror in RStudioRead more
R – create scatterplot with ggplot2
R has pretty amazing capabilities for creating charts and graphs. One of the most common packages … R – create scatterplot with ggplot2Read more
R – find cases (rows) that match specific criteria
I regularly need to find a specific case or set of cases that meet some criteria … R – find cases (rows) that match specific criteriaRead more
R – delete one or several variables in a dataset
I regularly create variables while analyzing data and then find that I need to delete a … R – delete one or several variables in a datasetRead more
R – create variable filled with zeros
I ran into a situation where I needed to add a variable to a dataset. I … R – create variable filled with zerosRead more