689792_en-US
Choose output of a new column based on name of the columnI have column names with student names and the class/es that they’ve attended:
Name, Class A1, Class A2, Class A3, Class A, Class B
Where not every Class column has an input. On my script, how can I create a new column where it will only choose the output where:
If a student attended all “A” Classes, the output is from column Class A.
If a student attended Class A1 through A2 or A3, the output is from the class with the highest number (column Class A is empty).
If a student attended Class B, this student did not attend any of the “A” Classes (all empty) and so the output is from Class B.
For now I was able to run a for loop to compile all the column names in a list. However, I’m not sure how to compare all the column names to this logic. I’m relatively new to writing scripts on JMP so any help is appreciated!Basic Data Analysis and Modeling
Comments
There are no comments yet