title: Getting NA's when using case_when in R
body: <p>I am trying to covert NFL teams with their respective city. While trying case_when I am getting NA's. Below is the code</p>
  
  <pre><code>nfl_RM %&gt;% 
    select(team_name) %&gt;% 
    mutate(state = case_when(
                             team_name %in% c("Rams","Chargers","49ers","Raiders") ~ "California", 
                             team_name %in% c("Jaguars", "Dolphins", "Buccaneers") ~ "Florida",
                             team_name %in% c("Ravens","Redskins") ~ "Maryland",
                             team_name == "Cardinals" ~ "Arizona",
                             team_name %in% c("Eagles","Steelers") ~ "Pennsylvania",
                             team_name %in% c("Bengals","Browns") ~ "Georgia",
                             team_name %in% c("Jets","Giants") ~ "New Jersey",
                             team_name %in% c("Cowboys","Texans") ~ "Texas",
                             team_name == "Broncos" ~ "Colorado",
                             team_name == "Falcons" ~ "Georgia",
                             team_name == "Bears" ~ "Illinois",
                             team_name == "Colts" ~ "Indiana",
                             team_name == "Saints" ~ "Louisiana",
                             team_name == "Patriots" ~ "Massachusetts",
                             team_name == "Lions" ~ "Michigan",
                             team_name == "Vikings" ~ "Minnesota",
                             team_name == "Chiefs" ~ "Missouri",
                             team_name == "Bills" ~ "New York",
                             team_name == "North Carolina" ~ "Panthers",
                             team_name == "Titans" ~ "Tennessee",
                             team_name == "Seahawks" ~ "Washington",
                             team_name == "Packers" ~ "Wisconsin"
                             )
           )
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>team_name state
  
  "Lions"     NA          
  "Lions"     NA          
  "Lions"     NA          
  "Lions"     NA          
  "Lions"     NA          
  "Packers"   NA
  </code></pre>
  
  <p>Also, is there any other way to do this?</p>