I got some data from two experiments where participants listened to pairs of audio, and now I'm trying to get a smaller list of pairs where the segments appear only once. Here is a sample of my data, where each row represents a pair:
data <- structure(c("38", "39", "48", "50", "55", "68", "143", "'00123_16_02 Firestarter_timbre.txt'",
"'00123_16_02 Firestarter_timbre.txt'", "'00123_16_02 Firestarter_timbre.txt'",
"'00123_16_02 Firestarter_timbre.txt'", "'00133_10_02 Loner_timbre.txt'",
"'00133_10_02 Loner_timbre.txt'", "'00371_17_05 - Original_timbre.txt'",
"'00133_10_02 Loner_timbre.txt'", "'00030_11_01 Get Your Snack On_timbre.txt'",
"'00845_03_11 - Flying Lotus - Parisian Goldfish_timbre.txt'",
"'01249_17_UMEK - Efortil_timbre.txt'", "'00030_11_01 Get Your Snack On_timbre.txt'",
"'01300_08_02 - Clipper_timbre.txt'", "'01300_08_02 - Clipper_timbre.txt'",
"MRHT", "MRHT", "MRHT", "MRHT", "MRHT", "MRHT", "MRHT", "12",
"9", "14", "11", "14", "15", "12", "11", "12", "14", "15", "14",
"14", "11", "2.75", "2.22222222222222", "2.21428571428571", "2.54545454545455",
"2.28571428571429", "2.53333333333333", "2.25", "2.81818181818182",
"3.25", "3.14285714285714", "2.93333333333333", "3.14285714285714",
"3.07142857142857", "2.90909090909091", "0.621581560508061",
"0.97182531580755", "1.25137287246211", "1.21355975243384", "0.994490316197694",
"0.743223352957207", "1.05528970602217", "0.873862897505303",
"0.753778361444409", "0.662993544131796", "1.03279555898864",
"0.662993544131796", "0.997248963150875", "1.04446593573419"), .Dim = c(7L,
10L), .Dimnames = list(NULL, c("pair.number", "Segment1", "Segment2",
"category", "Rhythm.n", "Timbre.n", "Rhythm.mean", "Timbre.mean",
"Rhythm.sd", "Timbre.sd")))
Is there a way to get a set of pairs where the segments don't repeat themselves across both "Segment1" and "Segment2"? Here's what it might look like:
structure(c("48", "55", "143", "'00123_16_02 Firestarter_timbre.txt'",
"'00133_10_02 Loner_timbre.txt'", "'00371_17_05 - Original_timbre.txt'",
"'00845_03_11 - Flying Lotus - Parisian Goldfish_timbre.txt'",
"'00030_11_01 Get Your Snack On_timbre.txt'", "'01300_08_02 - Clipper_timbre.txt'",
"MRHT", "MRHT", "MRHT", "14", "14", "12", "14", "14", "11", "2.21428571428571",
"2.28571428571429", "2.25", "3.14285714285714", "3.14285714285714",
"2.90909090909091", "1.25137287246211", "0.994490316197694",
"1.05528970602217", "0.662993544131796", "0.662993544131796",
"1.04446593573419"), .Dim = c(3L, 10L), .Dimnames = list(NULL,
c("pair.number", "Segment1", "Segment2", "category", "Rhythm.n",
"Timbre.n", "Rhythm.mean", "Timbre.mean", "Rhythm.sd", "Timbre.sd"
)))
Thanks!