FW123
1
When merging two dataframes i get the following error:
votes <- as.data.frame(RFM$votes)
origin <- as.data.frame(RFM$y)
colnames(origin)[1] <- 'origin'
fit_score <- merge(votes,origin, by.x=row.names, by.y=row.names)
Error in as.vector(x, mode) :
cannot coerce type 'closure' to vector of type 'any'
Does anyone understand the error and knows how to solve?
row.names is a function so its not an appropriate by.x or by.y parameter to merge with
FW123
3
Great, thanks! Solved the problem.
system
Closed
4
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.