Displaying 2 results from an estimated 2 matches for "dciemo".
2002 May 20
0
Use of 'any' in 3.2.1 if ... else example is incorrect (PR#1576)
On Mon, 20 May 2002 dciemo@excite.com wrote:
> Full_Name: David Ciemiewicz
> Version: 1.3.1
> OS: Windows 2000
> Submission from: (NULL) (63.192.218.208)
>
>
> In the R Language Manual (R-lang.pdf), section 3.2.1 "if", there is an example
> expression which uses the function "any"...
2002 May 20
1
Use of 'any' in 3.2.1 if ... else example is incorrect R-lang.pdf (PR#1575)
Full_Name: David Ciemiewicz
Version: 1.3.1
OS: Windows 2000
Submission from: (NULL) (63.192.218.208)
In the R Language Manual (R-lang.pdf), section 3.2.1 "if", there is an example
expression which uses the function "any".
> if( any(x) <= 0 ) y <- log(1+x) else y <- log(x)
> y <- if( any(x)<= 0 ) log(1+x) else log(x)
However, the parenthesis are