Back to Browse

Mutate a column in R with the case_when function

5.2K views
Sep 25, 2021
5:16

Get data here to follow along: https://www.kaggle.com/dgomonov/new-york-city-airbnb-open-data Description: case_when is a super handy function to know as it allows us to test multiple if_else type statements.

Download

1 formats

Video Formats

360pmp46.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Mutate a column in R with the case_when function | NatokHD