Global AI and Data Science

 View Only

Recoding a variable with multiple values

  • 1.  Recoding a variable with multiple values

    Posted 2 days ago

    Hi,

    I need some help to recode a string variable with multiple values.

    I have a postcode variable where respondents entered their postcodes as text. Some postcodes are repeated, while others are identical but written differently. The list of postcode responses is extensive, and I want to group them into 5 categories. How can I recode these multiple postcode values into 5 distinct categories?

    Any help would be greatly appreciated.

    Best,

    Mina



    ------------------------------
    Mina
    ------------------------------

    #AIandDSSkills