I want rename a category in a variable as shown here Replace a value in a data frame based on a conditional (`if`) statement
The values of itog$GOODS_NAME
are:
МАКФА макар УЛИТКИ 450г
When I change one of them like this:
itog$GOODS_NAME[itog$GOODS_NAME == "макар"] <- "макароны"
The values of itog$GOODS_NAME
should be:
МАКФА макароны УЛИТКИ 450г`
But instead they are unchanged:
itog$GOODS_NAME
МАКФА макар УЛИТКИ 450г