Displaying 3 results from an estimated 3 matches for "expr_1".
2008 May 21
2
Problem in converting natural numbers to bits and others
...ed to mutliply 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
2004 Aug 24
0
additional examples for R-intro.texi (PR#7195)
...d, and it may be used
-wherever any expression may be used; in particular multiple assignments
-are possible.
+wherever any expression may be used; in particular, multiple assignments
+such as @code{x <- y <- z <- 0} are possible.
Commands may be grouped together in braces, @code{@{@var{expr_1};
@var{@dots{}}; @var{expr_m}@}}, in which case the value of the group
--- R-intro.texi~ Tue Aug 24 11:21:38 2004
+++ R-intro.texi Tue Aug 24 11:21:38 2004
@@ -2021,9 +2021,8 @@
@example
> solve(A,b)
@end example
-
@noindent
-solves the system, returning @code{x} (up to some accuracy loss)....