I've been searching for a way to take 2 columns from a table that I uploaded from excel to R and basically make another table with the same number of rows. The original table has 222 rows (each row represents a participant) and of this table I want to take two columns to make this new table that will have the same amount of rows so I can then omit the NA values in these two columns. I've tried this code, but I get this result.
ep_public1=table(SCRAM$ep_public,SCRAM$bl_sex)
      1  2
  0   2 12
  1  23 60
  2  13 19
  3  20 31
  4  23 17
  NA  0  2
The ep_public variable ranges from 0 to 4, and has a NA response (after I create the new table I wish to omit or eliminate the 2 participants that did not respond). The bl_sex is just 1 or 2. Is there a way for me to do this? Thanks ahead!
 
     
     
    