Skip to content
Prev 369171 / 398498 Next

Matched Items in rows + issue with writing a table

I would like to thank anyone here spending the time to help.


Jeff, I did not understand your recommendations regarding understanding the code. I tried to break the parts of the code but this does not make sense.
"1"
"2"

N <- strsplit(x[1],sep)
[[1]]
[1] "1"
[[1]]
[1] "cyp3" "cyp7"

[[2]]
[1] "cyp2"

[[3]]
[1] "c1" "c3" "c6"
[1] "cyp3,cyp7" "cyp2"      "c1,c3,c6"


Jim, thank you so much for writing the code which works but I will not complete my analysis until I understand what happens in each line. Otherwise, I will try to search for alternative solutions which I can understand.  If anyone can explain me what each part of the code has done, then please kindly replay . Please do not reply to just say try to teach yourself as I usually do not post any question here or ask for explanation until after I have already spent many hours or sometimes days of multiple tries. I also

have registered to an R course but many of what I have learnt until now was with just simple examples.  The blue lines bellows are the ones I did not understand.



findMatches<-function(x,sep=",") {