R studio run really slow

Hi Mingmei, welcome!
Do you have the same problem if you run your code in R (not in RStudio)? What are your versions of R, RStudio, dplyr and OS? Any chance that you could make a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.

If you've never heard of a reprex before, you might want to start by reading this FAQ:

1 Like