我得到了两个实验的数据,参与者听取了一些音频对,并且现在我正在尝试获取仅出现一次的片段的更小列表。这是我的数据样本,其中每行代表一对:
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")))
有没有一种方法可以获得一组成对的值,使得这些值在“Segment1”和“Segment2”中不重复?以下是可能的结果:
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"
)))
谢谢!