Hi,
Thanks to Henrique Dallazuanna, Erik Iverson, Mark Leeds, and J. Scott
Olson for pointing me down the path of joy. I finally figured out a
solution to the problem:
Given the following list of partially overlapping test keys, a data
frame called keys1:
ID X1 X2 X3 X4 X5 X6
It's ugly, but you could use something like
sum(tmp[i,] == A) 0
on each column.
pax,
Scott
On Fri, Feb 1, 2008 at 1:58 PM, Scot W. McNary [EMAIL PROTECTED] wrote:
Hi,
I have a question about how to obtain the union of several data frame
rows. I'm trying to create a common key for
Perhaps:
data - data.frame(key, row.names=1)
names(data) - paste(q, 1:6, sep=)
apply(data, 2, function(x)unique(x)[unique(x) != ])
On 01/02/2008, Scot W. McNary [EMAIL PROTECTED] wrote:
Hi,
I have a question about how to obtain the union of several data frame
rows. I'm trying to create a
Hi,
I have a question about how to obtain the union of several data frame
rows. I'm trying to create a common key for several tests composed of
different items. Here is a small scale version of the problem. These
are keys for 4 different tests, not all mutually exclusive:
id q1 q2 q3 q4
4 matches
Mail list logo