Error in Variable formation

When I try to run the below code, I keep getting this error. Yesterday, I kept getting a different error mentioning cannot allocate a vector of size 34.3 MB

avg_users <- edx %>%
+ left_join(avg_movie_rating, by='movieId') %>%
+ group_by(userId) %>%
+ filter(n() >= 100) %>%
+ summarize(b_u = mean(rating - mu - b_i))
Error: Join columns must be present in data.
x Problem with movieId.

It looks like the movieId column is not in one of the dataframes edx or avg_movie_rating.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.