I combined 2 data frames together using rbind... How do I unbind the data at a specific row to create 2 separate data frames? -- View this message in context: http://r.789695.n4.nabble.com/What-is-the-opposite-of-rbind-tp2289244p2289244.html Sent from the R help mailing list archive at Nabble.com.
a <- rbind(1:3, 4:6, 7:9, 10:12, 13:15) a1 <- a[1:3,] a2 <- a[4:5,] a1 a2 [[alternative HTML version deleted]]
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