Hello, 

I am beginner in R and I would like to solve the following problem:
Suppose that we have  three files to be red in R d1, d2, and d3

> d1
  id x1 x2
1  1  4  n
2  2  3  h
3  3  0  f
> d2
  id x1 x2
1  1  2  r
2  2  3  u
3  3  1  f
> d3
  id x1 x2
1  1  2  a
2  2  1  w

Is there any library or function that one can read this datasets like
for(i in 1:3)
 d[i] <- read.table(file=d[j].txt, header=T)

and is it possible to delete the header for each file and to have them in one 
data frame like 

> d
1   1  4  n
2   2  3  h
3   3  0  f
4   1  2  r
5   2  3  u
6   3  1  f
7  1  2  a
8  2  1  w
9  3  1  f

I really appreciate your help!
Stefo





       
---------------------------------

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to