search for: expr_2

Displaying 2 results from an estimated 2 matches for "expr_2".

Did you mean: expr2
2008 May 21
2
Problem in converting natural numbers to bits and others
...liply each element of column table of a row and sum it up. iii)I would also like to know how to insert an if else statement where in the above case, I wanted to check if data[1:3,] returns me 1 or 0, it will execute some calculations. I refer to the R intro pdf and it mentioned using if (expr_1 ) expr_2 else expr_3. Does that mean if(data[1:3,1:2])>0 output[1:3,1:2]=0 else output[1:3,1:2]="100". If I did this command, how does R knows which row and column to map the output with? Please advise. Appreciate alot. Thanks. [[alternative HTML version deleted]]
2012 Oct 21
3
Help me please to code....
User has to type (input) x. After input....code has to check X with statement if There is a statement IF. If X=0 then Y=5/2 else =7; How to code it please. I tried but my code does not work ;( I wanna see how it looks like( thank u in advance( -- View this message in context: http://r.789695.n4.nabble.com/Help-me-please-to-code-tp4646932.html Sent from the R help mailing list archive at