Skip to content

Change negative values in column

1 message · Steve Lianoglou

#
Hi Joel,
On Nov 3, 2009, at 11:30 AM, Joel F?rstenberg-H?gg wrote:
Yes.
Don't think so: NA < 0 returns NA, not an error regarding the  
argument's length in your `if` clause.
I'm not sure how to answer this. Just try to learn a bit more about  
how to index using integers, vectors of integers, and vectors of  
logical/boolean values.
Great. Don't just use that code though, understand what it's doing ..  
it'll help you to slice and dice your data in the future.

If you have any questions regarding the details of that code snippet  
that you can't figure out after careful inspection, feel free to ask.

-steve

--
Steve Lianoglou
Graduate Student: Computational Systems Biology
   |  Memorial Sloan-Kettering Cancer Center
   |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact