[R] What is the opposite of rbind?

schuster mail at friedrich-schuster.de
Wed Jul 14 21:26:59 CEST 2010


On Wednesday 14 July 2010 09:06:01 pm Addi Wei wrote:
> I combined 2 data frames together using rbind...  How do I unbind the data
>  at a specific row to create 2 separate data frames?
> 

if you have a column with an identifier: try split()

Example: 
 split(iris, iris$Species)


-- 
----
Friedrich Schuster
Dompfaffenweg 6
69123 Heidelberg



More information about the R-help mailing list