Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

I currently rarely use R for data processing or cleaning because my daily work involves a lot of string extraction/processing, which is difficult to do in R. Additionally, the error tracking in R is very demanding on code proficiency and experience, making it almost unbearable for me to write and maintain R code (I tried at a previous company…). However, recently one of my colleagues asked me to use R to complete such tasks because he only knows R. In the process of copying code, I discovered another reason why I don’t need to use R for this type of work…

Recently, while helping a colleague create plots, I uncovered some new issues and solutions related to ggpubr and survival analysis packages. Here are the records.

Today I encountered a plotting problem and learned a new small trick, so I’ll record it here.

I didn’t expect to do regression again after four years… this time using R instead of SPSS. Previously, I was doing statistical analysis, but now… it’s machine learning.

Recently, I wrote a script to draw many images using ggplot. Although all the places where loops are needed have already been replaced with apply, it still can’t keep up when drawing hundreds of images at once. So, I fiddled around with parallel and managed to parallelize the plotting part to speed things up.

Working with R often involves encountering various issues. Here are some collected tips.

When installing packages from GitHub in R, sometimes you may encounter a connection timeout issue with GitHub. Here’s how to solve it.

Due to work requirements, I needed to install a package mentioned in a literature. Initially, I thought it would be done with two commands, but who knew there were so many dependencies to resolve… and R packages on Linux need to be compiled, which is quite time-consuming… Fortunately, there’s Conda!

During my graduate studies, I had the need to display results using maps and used R to create them. I recorded the code from that time below.

Graduate training on R at the Guangdong Provincial CDC was my first serious programming course.