title: Read, parse and display .csv file with Shiny
body: <p>While there are bits and pieces, I haven't found anything as specific as the problem I'm dealing with at the moment so I'm going to ask. Sorry for the length but I wanted to be as detailed as possible.</p>
  
  <p>I'm able to read "file.csv" (who's content is shown below) with read.csv. Now I want to parse and display the content of the file using Shiny (I'm running RStudio IDE).  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Name City  State  Type   QtySold     QtyBought 
  A Chicago  Illinois Seller     200
  B Jersey City New Jersey Buyer             300
  C Oakland  California Both        450         200
  D Akron  Ohio  Buyer          330
  E Madison  Wisconsin Seller     600</code></pre>
  </div>
  </div>
  </p>
  
  <p>I modified the <strong>ui.R</strong> <a href="http://shiny.rstudio.com/gallery/datatables-options.html" rel="nofollow">here</a> for Shiny to display these tabs as below:  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>DataTable Options   GeoMap   Sellers    Buyers   OtherStuff </code></pre>
  </div>
  </div>
  </p>
  
  <p>I would like to modify these <strong>server.R</strong> and <strong>ui.R</strong> <a href="http://shiny.rstudio.com/gallery/datatables-options.html" rel="nofollow">files</a> to accomplish the following:</p>
  
  <p>Read the file, go thru the "Type" column, grab and group all the types and write them to the respective tab (in Shiny), ranking them based on "QtyBought" and "QtySold". </p>
  
  <p>So when it's all said and done, when you click on "Seller" and "Buyer" tabs (in Shiny) you will see something like this:</p>
  
  <p><strong>Seller Tab:</strong>
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Rank Name City  State  Type  Qty
  1 E Madison  Wisconsin Seller  600
  2 C Oakland  California Seller  450
  3 A Chicago  Illinois Seller  200</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Buyer Tab:</strong>
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>Rank Name  City  State  Type  Qty 
  1 D  Akron  Ohio  Buyer  330
  2 B  Jersey City New Jersey Buyer  300
  3 C  Oakland California Buyer  200</code></pre>
  </div>
  </div>
  </p>