I have created a new field called "rank" in the attribute table of my soil data, and I want to populate my new "rank" field with a number of 1 to 5 based on attribute values from another field, for example: "if the attribute in the soil type field is peridotite, i want to fill the rank field with 1. and if the attribute in the soil type field is granodiorite i want to fill the rank field with 2" etc.
How would I go about doing this with field calculator? or is there another way I should be doing this.