How to 'save' reactive dataframe as non-reactive in shiny/R

自古美人都是妖i 提交于 2020-01-02 10:33:53

问题


I have a reactive dataframe called meals().

I would like to be able to treat it as a non-reactive dataframe.

However, meals2<-as.data.frame(meals()) does not give the expected result.

So, I tried

meals2=reactive({
      as.data.frame(meals())
  })

and that does not work either, and I think that would give me another reactive dataframe in meals2(), which is not what I want. I know I am misunderstanding some of the basics here. Does anyone have any pointers?

来源:https://stackoverflow.com/questions/33651692/how-to-save-reactive-dataframe-as-non-reactive-in-shiny-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!