Any AnalyticFags in here know how to create a new variable from dataset in Rmarkdown? I am trying to get rid of missing data in my summary and table but it doesnt seem to be running. This is what im trying…
```{r}
Gender<-data$gender Gender[data$gender==-99]<-NA
```
The variable gender has 180 obo of -99 in summary and my codebook for dataset says this is missing data. I want run…
```{r}
summary(data)
```
To remove missing data and clean my table. Does anyone have advise?