↧
Answer by akrun for Create multiple dummy variables based on column in R
We may use dummy_cols from fastDummieslibrary(fastDummies)dummy_cols(MovieRating_test, 'genres', split = ",")-output tconst genres genres_Animation genres_Comedy genres_Romance genres_Short...
View ArticleCreate multiple dummy variables based on column in R
I have a dataframe as below, I want to create dummy columns based for each unique string available in the genres column tconst genres 1: tt0000001 Documentary,Short 2: tt0000002 Animation,Short 3:...
View Article