Hi,
Could you please help me regarding the above-mentioned issue. I have data set and I want to categorize the variable tectonic_setting into two new variables:
•Plate_type: Intrastate, Rift zone, Subsection zone
•Crust_type: Continental crust, Intermediate crust, Ocean crust
I used the following code:
data want;
set have;
Plate_type = SCAN(tectonic_setting,1);
Crust_type = SCAN(tectonic_setting,3);
run;
It works partially i.e. some part is coming and some part is not coming as a output.
Here is the some data:
Tectonic_Setting
Rift Zone / Continental Crust (>25 km)
Intrastate / Continental Crust (>25 km)
Subsection Zone / Continental Crust (>25 km)
Rift Zone / Intermediate Crust (15-25 km)
Rift Zone / Oceanic Crust (< 15 km)
I am also giving a portion of data set as an attachment
Looking for your kind response.