Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Relational DB in R-environment

0 views
Skip to first unread message

Mariano Tomatis

unread,
Jul 24, 2008, 10:26:47 AM7/24/08
to
Hi,
is it possible to "link" with an INNER JOIN two dataframes in R-
environment, as in any relational DB?
Many statistical environments enable the user to do it (i.e. SAS).

Having table A and table B linked with a key ID, I tried to do it by
adding new columns to table B with the same name as in A and using a
function like:

B$NAME <- ""
for(i in A$ID) B$NAME[B$ID==i] <- A$NAME[A$ID==i]

but it is soooooo slooooooow....

Thank you for any help.

Mariano Tomatis

Mariano Tomatis

unread,
Jul 24, 2008, 1:21:54 PM7/24/08
to
Sorry, I probably solved the problem with this:
http://stat.ethz.ch/R-manual/R-patched/library/base/html/merge.html

:-)
Mariano

0 new messages