I would like to have the price range field to display as factor with 4 levels where 0=poor, 1=Normal, 2=Medium and 3=High. I have managed to create few other fields as factor with 2 levels. But don't know how to create a field as factor with 4 levels? The data set is names as mobile_price_classification The uploaded screenshot is after the command:
> str(mobile_price_classification)
I want to have the price_range field as factor with 4 levels, where 0=poor, 1=Normal, 2=Medium and 3=High.