Quantcast

Append tables

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Append tables

Bill Hunsicker
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
[hidden email]
336-678-5260(w)
610-597-9985(m)
336-678-5088(lab)


 

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Append tables

Ferdinand Alimadhi
?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
>[hidden email]
>336-678-5260(w)
>610-597-9985(m)
>336-678-5088(lab)
>
>
>
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>[hidden email] 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
[hidden email]
www.iq.harvard.edu

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Append tables

Don MacQueen
In reply to this post by Bill Hunsicker
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
>[hidden email]
>336-678-5260(w)
>610-597-9985(m)
>336-678-5088(lab)
>
>
>
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>[hidden email] 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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Loading...