some_dataframe<-read.csv(input$file1$datapath,header=F,skip=3)
I obtain a data.frame that contains an odd sequence of rows from the file I attempt to upload. To elaborate, when I preview the dataframe with "head(some_dataframe)" it returns rows numbered 1, 6, 2, 3 for one column and 2, 1, and 4 for the next column and so on in what appears to be an almost random fashion. I suspect an encoding issue but can't come up with a solution after reading around and trying to toggle different arguments of read.csv().
After the file is uploaded to my app I calculate the max using:
as.numeric(t(apply(some_dataframe,2,max,na.rm=T)))
which returns a vector with a lot of identical values which shouldn't be the case since each column has a unique max. This is where I noticed something was off, but it appear to be an issue with reading in the file in the first place.
My app is hosted on the shinyapps.io servers and I am deploying from a Mac OSX computer.
Any help is greatly appreciated.