I am pulling the data with the below code.
imdb_movie_data <-read.csv("https://raw.githubusercontent.com/sundeepblue/movie_rating_prediction/master/movie_metadata.csv")
Now I want to remove the last term from each movie_title and for which I wrote the following code.
substr(imdb_movie_data, 1, (nchar(imdb_movie_data$movie_title)-1))
But this is not removing the last character from the columns. Let me know if anyone needs any clarification on this.