Re: [R] matching items in a data frame

2011-07-06 Thread Jim Holtman
table(dat$word) Sent from my iPad On Jul 6, 2011, at 1:41, Lee Averell wrote: > I have a data frame with 2 columns, the first is an index of participants and > the second is a list of words presented to the participant (see below). > >> head(dat) > sword > 1a pianist > 1a sweat > 1a

[R] matching items in a data frame

2011-07-06 Thread Lee Averell
I have a data frame with 2 columns, the first is an index of participants and the second is a list of words presented to the participant (see below). > head(dat) sword 1a pianist 1a sweat 1a carnage 1a nymph 1ahank 1a waist > tail(dat) sword 4a package 4a