If you want the changes to persist, then you have to assign them to the original variable e.g.
values$mydata <- values$mydata %>%
mutate(TotArtFillRate_Sem4 = ITRec_4/ITOrd_4,
TotArtFillRate_Sem3 = ITRec_3/ITOrd_3,
TotArtFillRate_Sem2 = ITRec_2/ITOrd_2)
And BTW there is no need to call mutate()
so many times, you can do it with just one.
If you need more specific help, please make a minimal REPR oducible EX ample (reprex) of your app, here is a nice guie about making a reprex for a shiny app.
Shiny issues can be challenging to resolve relative to other problems with your code or statistical methods. Shiny apps are often large, complex projects with interacting files.
When seeking help from others it is considered polite to:
First, do your best to work through RStudio's debugging tools to diagnose your issue on your own. Often those shiny logs and tracebacks are useful to others trying to help out.
Second, strive to minimize the effort required to replicate your issue. You can do this with a reproducible example ("reprex").
Shiny Debugging
Errors in Shiny code can be difficult to track down. If you don't know where your problem is coming from, you can track it down with some o…
1 Like