Hello everyone, in this video, you will learn to use a function from R to create automatic dummy variables. The function is named as dummy_cols( ). It is quick and easy. And it can create dummy variables for each and every categorical variable in a dataset.
This is a follow up to my previous video on using ifelse( ) to create dummy variables and categorical variables: https://youtu.be/rLXlab5KzBA
The R code in this video can be found here:
https://github.com/yz-DataScience/R-for-data-science/blob/main/creating%20dummy%20variables%20automatically%20using%20dummy_cols.R
Download
0 formats
No download links available.
creating dummy variables automatically using R | dummy_cols function| | NatokHD