title: How do I reverse data in r studio from a dataset?
body: <p>I have a dataset from ESS for R cloud. I want to reorder the levels of one question in the dataset in order to make it easier to compare it to another one.</p>
  
  <p>The factor levels are ("Worse place to live", "1", "2", "3", "4", "5", "6", "7", "8", "9", "Better place to live") and they each have values of the number of participants who choose that answer. Now I need it to be ("Better place to live", "9", "8", "7", "6", "5", "4", "3", "2", "1", "Worse place to live"). I tried to do it with mapvalues, but it just changed the label and not the values that it was holding. 
  So maybe you guy can help me!. Thanks in advance :)</p>