r - Transforming a data.frame -


i appreciate suggestion on following : working data.frame (below) :

exp    ct   row_names   col_names                  1   test -5    b4:b5:b6    b1:b2:b3               2   test -2    b7:b8:b9    b1:b2:b3               3   test -2    d4:d5:d6    h4:h5:h6               4   test -2    d10:d11:d12 f10:f11:f12              5   test -2    d10:d11:d12    h1:h2:h3               6   test -2    e10:e11:e12    g7:g8:g9              7   test -4     a1:a2:a3    d1:d2:d3                 8   test -4   b10:b11:b12    b1:b2:b3    

what easiest way consider unique elements in row_names or unique elements in col_names , print how many times these unique elements associate numbers -5, -2, or -4? (these numbers on column named ct.)


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -