I am newbie in R programming, unfortunately I have to processing movieLens-1M data. In here I want to ask how I can split column at delimiter [::] in movies.dat. I have try this code:
> moviesDF<-read.delim("movies.dat", sep="|", header=F, stringsAsFactors=FALSE)
> str(moviesDF)
'data.frame': 3998 obs. of 3 variables:
$ V1: chr "1::Toy Story (1995)::Animation" "2::Jumanji (1995)::Adventure" "3::Grumpier Old Men (1995)::Comedy" "4::Waiting to Exhale (1995)::Comedy" ...
$ V2: chr "Children's" "Children's" "Romance" "Drama" ...
$ V3: chr "Comedy" "Fantasy" "" "" ...
The desired output is following below:
V1: Movie ID
V2: Title
V3: Genre
Additional, my aim is to provide recommendation system