[R] Tables and merge

Silvano silvano at uel.br
Wed Jul 6 13:36:27 CEST 2011


----- Original Message ----- 
From: "Silvano" <silvano em uel.br>
To: <r-help em 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
> -------------------------------------- 
>



More information about the R-help mailing list