0

How do I get the values to show when I want to get them from a table? I have the following dataset:

ORF      Name      G1      G1.Bkg      R1      R1.Bkg

007C     ERG11    8432      2404      7896      1155

218C     PYC2    11509      2148      12144     1074

051W     FUN43    5865      2422      4478

053W      NA      6762      2107      6343      1020

I need to find G1 and R1 for some specific names. Im using data[(data$Name="FUN43"), c(2,3,5)] to get the values from G1 and R1 for FUN43. The commandline returns the following:

    Name    G1    R1
NA  <NA>    NA    NA

Is there any way to show the values instead of getting NA?

2
  • please post the dput(dataset) of your dataset. Commented Feb 21, 2014 at 13:05
  • 2
    Try using == instead of =. Commented Feb 21, 2014 at 13:11

1 Answer 1

1
data[which(data$Name == "FUN43"),c(2,3,5)]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.