I am currently working on an analysis and it all runs great, but now I am working on putting it into an R Markdown to make it presentable and am running into an issue. It seems the R Markdown is not recognizing the loaded dataframes but the other R window is. Please see below. I am so lost on why it is working in one not the other. For context this is all within the same session of R Studio desktop and I am a beginner.
I have tried redoing the code and refreshing the imported data. Everything seems structurally fine.