Suppose I have a table 'test' such as
month
——-
January
February
…
I now want to define a string variable 'season' such that
'season'='winter' if 'month' is 'January', 'February', or 'March'
etc. The output would be
month season
—- —
January winter
February winter
…
Please advise.
Best Answer