Merge can only handle two tables at a time.
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Silvano <silvano@uel.br> wrote:

----- Original Message ----- 
From: "Silvano" <silvano@uel.br>
To: <r-help@r-project.org>
Sent: Thursday, June 30, 2011 9:07 AM
Subject: Tables and merge


> Hi,
>
> I have 21 files which is common variable CODE.
> Each file refers to a question.
>
> I would like to join the 21 files into one, to construct
> tables for each question by CODE.
>
> I tried the command (8 files only):
>
> require(foreign)
> q1 = read.epiinfo('Dados/Q1.rec')
> q2 = read.epiinfo('Dados/Q2.rec')
> q3 = read.epiinfo('Dados/Q3.rec')
> q4 = read.epiinfo('Dados/Q4.rec')
> q5 = read.epiinfo('Dados/Q5.rec')
> q6 = read.epiinfo('Dados/Q6.rec')
> q7 = read.epiinfo('Dados/Q7.rec')
> q8 = read.epiinfo('Dados/Q8.rec')
>
> juntos = merge(q1,q2,q3,q4,q5,q6,q7,q8)
>
> But it didn't work. Any suggestions?
>
> Thank you.
>
>_____________________________________________

> Silvano Cesar da Costa
> Departamento de Estatística
> Universidade Estadual de Londrina
> Fone: 3371-4346
>_____________________________________________

>

_____________________________________________

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.


	[[alternative HTML version deleted]]

