Skip to content
Back to formatted view

Raw Message

Message-ID: <4B16A108.8080205@web.de>
Date: 2009-12-02T17:16:56Z
From: Benjamin Müller
Subject: Arithmetic on multiple files
In-Reply-To: <4B169B91.8020607@ouce.ox.ac.uk>

Ain't it as simple as load them ("read()" or "read.csv()"), add (+) 
these dataframes and thats all? you also can export them again with 
"write()".

greets,
Benjamin M?ller

Muhammad Rahiz schrieb:
> Dear R-users,
>
> I'd like to perform arithmetic functions on 1000 files containing a 
> 2000x2000 matrix. Can anyone advise?
>
> For example,
>
> File1            File2           Output
> 1 1 1           4 4 4           5 5 5
> 2 2 2     +    5 5 5    =     7 7 7
> 3 3 3           6 6 6           9 9 9
>
>
>
> Muhammad
>