smouksassi / ggquickeda

ggplot2 and table1 summary statistics quick exploration of data
https://smouksassi.github.io/ggquickeda/
Other
71 stars 8 forks source link

skip header #11

Closed amaussa closed 5 years ago

amaussa commented 5 years ago

Possibility to skip the header (add in the box the number of line) the length dependency of the .CSV file to import. could be nice to add a additional box to enter a number to skip to suppress the header. Thanks Alain

amaussa commented 5 years ago

add temporary solution: server.R

Load user data

observeEvent(input$datafile, { file <- input$datafile$datapath values$maindata <- read.csv(file, skip=input$headerdigits, na.strings = c("NA","."))

values$maindata <- read.csv(file,na.strings = c("NA","."))

}) UIR file : ,

      uiOutput("headervar"),
      numericInput("headerdigits",label = "header line number",value = 1,min=1,max=20),

      br(),
smouksassi commented 5 years ago

For the moment I only support limited input file i.e just CSV and with simple header feel free to modify the package for your own needs there are some shiny apps out there that have a complete UI around importing files. Closing as it is not on the roadmap to extend the import files functionality for now.