I need help with converting R markdown to HTML.I was able to do it but this error
processing file: MODEL-EVALUATION-AND-DEPLOYMENT.Rmd
|............... | 30% [unnamed-chunk-4]
Quitting from lines 48-61 [unnamed-chunk-4] (MODEL-EVALUATION-AND-DEPLOYMENT.Rmd)
Error in table():
! all arguments must have the same length
Backtrace:
I was able to do it , however I'm getting error while saving the knit
processing file: MODEL-EVALUATION-AND-DEPLOYMENT.Rmd
|............... | 30% [unnamed-chunk-4]
Quitting from lines 48-61 [unnamed-chunk-4] (MODEL-EVALUATION-AND-DEPLOYMENT.Rmd)
Error in table():
! all arguments must have the same length
Backtrace:
This is almost certainly an error in the R code that has nothing to do with markdown or html. If you post the whole chunk someone might be able to spot something.
Quitting from lines 48-62 [unnamed-chunk-4] (MODEL-EVALUATION-AND-DEPLOYMENT.Rmd)
Error in data.frame():
! arguments imply differing number of rows: 29501, 29499
Backtrace:
I suspect this is a presence of NAs issue. Most likely predict simply skips outputting thosez so the data.frame construction has an incongruous volume of rows to insert.
This problem might be addressed in one of two ways.
Dropping na rows , so that the data.frames balance.
Or having the NA concretely appear on the prediction side