Error in UseMethod("left_join") : no applicable method for 'left_join' applied to an object of class "function" Calls: ... eval -> _fseq -> freduce -> -> left_join
When I run the .R file, this chunk of code shows me no error. Only when I try to knit it, it gives me an error. Do I have to install any particular package to clear out this error?
I said that the error message suggest that train is not a data.frame. Check in the chunk before you use the code the contents oftrain. If it is indeed not a data.frame maybe you did not run the chunk where it should be filled with data?