I am trying to run the below code and generate a report using R Markdown . Unfortunately I keep getting the below error. The code is processed dataset is taken into the environment and I can see the plots being generated without any issues. Provided the code as well for reference. R Markdown is always troublesome when I use it :(. Appreciate any assistance please. Thank you
Error in attach(mydata1) : object 'mydata1' not found
Calls: <Anonymous> ... withCallingHandlers -> withVisible -> eval -> eval -> attach
Execution halted
Rmd:
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
### Load package and libraries
library(dplyr)
require(reshape)
library(ggplot2)
library(ggpubr)
library(DMwR)
library(mice)
```
```{r}
attach(mydata1)
head(mydata1)
summary(mydata1)
str(mydata1)
```