Skip to content
Prev 377989 / 398502 Next

Accessing Data Frame

See below.
matchRow <- Reduce( "&", mapply("==", deck, aCard, SIMPLIFY=FALSE))

deck[ !matchRow, ]

There is a little `trick' here. A "data.frame" object is a "list" object and both `deck` and `aCard` are "data.frame" objects. So using `mapply` as above operates on the successive columns of each.  


You will find many useful idioms using the *apply functions. 

As you are new to R, I recommend running the example() for each of them as well as browsing the help page.

HTH,

Chuck