The R Project SVN R

Rev

Rev 27541 | Rev 30538 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27541 Rev 27733
Line 57... Line 57...
57
  \code{\link{TRUE}} or \code{\link{logical}}.
57
  \code{\link{TRUE}} or \code{\link{logical}}.
58
 
58
 
59
  \code{\link{Syntax}} for operator precedence.
59
  \code{\link{Syntax}} for operator precedence.
60
}
60
}
61
\examples{
61
\examples{
62
y <- 1 + (x <- stats::rpois(50, lambda=1.5) / 4 - 1)
62
y <- 1 + (x <- rpois(50, lambda=1.5) / 4 - 1)
63
x[(x > 0) & (x < 1)]    # all x values between 0 and 1
63
x[(x > 0) & (x < 1)]    # all x values between 0 and 1
64
if (any(x == 0) || any(y == 0)) "zero encountered"
64
if (any(x == 0) || any(y == 0)) "zero encountered"
65
 
65
 
66
## construct truth tables :
66
## construct truth tables :
67
 
67