dataframe - Drop rows with multiple keys in R -


i have 2 dataframes, df1 , df2.

df1:

contig  position   tumor_f  t_ref_count  t_alt_count 1     14599  0.000000            1            0 1     14653  0.400000            3            2 1     14907  0.333333            6            3 1     14930  0.363636            7            4  

df2:

contig  position 1     14599 1     14653 

i remove rows df1 matching contig, position values in df2.

here 1 way. sure there other solutions,

conpos_del <- with(df2, interaction(contig,position,drop=t)) subset(df1, !interaction(contig,position,drop=t) %in% conpos_del) 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -