title: State name to abbreviation
body: <p>I have a large file with a variable <code>state</code> that has full state names. I would like to replace it with the state abbreviations (that is "NY" for "New York"). Is there an easy way to do this (apart from using several if-else commands)? May be using <code>replace()</code> statement?</p>