search for: dow1

Displaying 1 result from an estimated 1 matches for "dow1".

Did you mean: dom1
2010 Feb 26
7
How to add a variable to a dataframe whose values are conditional upon the values of an existing variable
...s?are conditional?on the values of an existing?variable.?I can't seem to make an ifelse statement work?for my situation.?The existing variable?in my dataframe is?a character variable named DOW which contains abbreviated day names (SAT, SUN, MON.....FRI). I want to add a numerical variable named DOW1 to my dataframe that will?take?on the value?1 if DOW equals "SAT", 2 if DOW equals "SUN", 3 if DOW equals "MON",.....,7 if DOW equals "FRI". I? know this must be a simple problem but I have searched everywhere and tried everything I could think of. Any help...