R Help: I have read a number of tables into R with identical headings and I would now like to make a single table that has all the data appended under this single heading line. for example: t1 <- read.csv("f1",header=TRUE) t2 <- read.csv("f2",header=TRUE) all <- c(t1,t2) #all is now twice as wide as t1 or t2 with the same number of row!!!! #I need to know how to join these tables in a row wise fashion. Can you help me? Regards, Bill Bill Hunsicker RF Micro Devices 7625 Thorndike Road Greensboro, NC 27409-9421 bhunsicker@rfmd.com 336-678-5260(w) 610-597-9985(m) 336-678-5088(lab) [[alternative HTML version deleted]]
?rbind Bill Hunsicker wrote:>R Help: > >I have read a number of tables into R with identical headings and I >would now like to make a single table that has all the data appended >under this single heading line. > >for example: > >t1 <- read.csv("f1",header=TRUE) >t2 <- read.csv("f2",header=TRUE) > >all <- c(t1,t2) > >#all is now twice as wide as t1 or t2 with the same number of row!!!! >#I need to know how to join these tables in a row wise fashion. > >Can you help me? > >Regards, >Bill > > > > >Bill Hunsicker >RF Micro Devices >7625 Thorndike Road >Greensboro, NC 27409-9421 >bhunsicker at rfmd.com >336-678-5260(w) >610-597-9985(m) >336-678-5088(lab) > > > > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > >-- Ferdinand Alimadhi Programmer / Analyst Harvard University The Institute for Quantitative Social Science (617) 496-0187 falimadhi at latte.harvard.edu www.iq.harvard.edu
Does rbind() do what you want? At 11:47 AM -0500 12/14/05, Bill Hunsicker wrote:>R Help: > >I have read a number of tables into R with identical headings and I >would now like to make a single table that has all the data appended >under this single heading line. > >for example: > >t1 <- read.csv("f1",header=TRUE) >t2 <- read.csv("f2",header=TRUE) > >all <- c(t1,t2) > >#all is now twice as wide as t1 or t2 with the same number of row!!!! >#I need to know how to join these tables in a row wise fashion. > >Can you help me? > >Regards, >Bill > > > > >Bill Hunsicker >RF Micro Devices >7625 Thorndike Road >Greensboro, NC 27409-9421 >bhunsicker at rfmd.com >336-678-5260(w) >610-597-9985(m) >336-678-5088(lab) > > > > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html-- -------------------------------------- Don MacQueen Environmental Protection Department Lawrence Livermore National Laboratory Livermore, CA, USA