title: Automatic split of character matrix according to a column values into variable number of new dataframes
body: <p>I would like to split a character matrix I have according to one of the column values.
  so if for example I have 3 columns and "n" rows, and I want to use column number 2 as reference. The script should look in the second column and group all rows that contain the same value into a dataframe.</p>
  
  <p>So, say I have "A", "B", "C", "D" and "E" values in column 2 through "n" rows. I want to get (in this case) 5 new dataframes containing all rows of data conditioned to the second column values. So all rows that contain "A" in the second column of the matrix go to one dataframe and so on.</p>
  
  <p>My data is much bigger, containing around 400 different character values in the column I want to use as reference (column 2 in the above example) to split so this process needs to be automatic, I mean, it has to automatically detect how many new dataframes should be created according to the number of different values in "column 2".</p>
  
  <p>Here is a shorter example of what i need:</p>
  
  <pre><code>structure(c("Hi", "Med", "Hi", "Low", "A", "D", "A", "C", "8", 
  "3", "9", "9", "1", "1", "1", "2"), .Dim = c(4L, 4L), .Dimnames = list(
      NULL, c("b", "x", "y", "z")))
  </code></pre>
  
  <p>Here I would need to have 3 new dataframes if I use (again) column 2 ("x") as reference. One dataframe containing  rows 1 and 3, another dataframe containing row 2 and a final one containing row 4, as there are 3 different values in that column: "A", "D" and "C".</p>
  
  <p>The new dataframes should be named automatically as the value they are being grouped with. So the first dataframe should be named "A", the second "D" and so on. Is it possible to make all this process automatic with my bigger data?</p>
  
  <p>I hope I was clear enough, and sorry if this was already answered before but i couldnt find a solution that worked for me.</p>