Guest User

Untitled

a guest
Apr 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. server <- function(input, output) {
  2.  
  3. output$contents <- renderTable({
  4.  
  5. req(input$file1)
  6.  
  7. df <- read.csv(input$file1$datapath,
  8. header = input$header,
  9. sep = input$sep)
  10. df[1,3]=99
  11. df
  12. })
  13. output$downloadData<-downloadHandler(
  14. filename=function(){
  15. paste("data",".csv",sep="")
  16. },
  17. content=function(file){
  18. write.csv(df,file)
  19. }
  20. )
  21. }
Add Comment
Please, Sign In to add comment