Quantcast
Channel: Create multiple dummy variables based on column in R - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article


Create 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

Browsing all 2 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>