r - I got this error Error in grepl(sheet, xmlFiles, ignore.case = TRUE) : while running the following code: -


i got error error in grepl(sheet, xmlfiles, ignore.case = true) : while running following code:

  finaldata<-setnames(data.frame(matrix(ncol=length(colname),nrow=0)),colname)     for(i in 1:length(sheetnames)-2){       dataframe1<-read.xlsx("f:\\demand forecasting\\original data\\dmbi.xlsx",sheet=i,cols=c(1,2,3,10,11))       #apply filter dataframe       for(j in 1:length(material)){         tempmaterial <- material[j]         filtereddata<-filter(dataframe1,material==tempmaterial)         salesvalue <- sum(filtereddata$umsatz)         colname<-colnames(filtereddata)         tempdata<-setnames(data.frame(matrix(ncol=length(colname),nrow=0)),colname)         tempdata<-rbind(tempdata,filtereddata[1,])         tempdata[1,5]<-salesvalue       }       finaldata<-rbind(finaldata,tempdata)     } 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -