1:10) < 0]
integer(0)
Another potential source of error would be passing an alphabetic value:
"e" > 0
#[1] TRUE
--
David.
>
> Thanks for the help guys!
>
> Andras
>
> --- On Wed, 3/20/13, Robert Baer wrote:
>
>
> From: Robert Baer
> Subject: Re
r the help guys!
Andras
--- On Wed, 3/20/13, Robert Baer wrote:
From: Robert Baer
Subject: Re: [R] how to skip part of the code
To: "PIKAL Petr"
Cc: "Andras Farkas" , "r-help@r-project.org"
Date: Wednesday, March 20, 2013, 9:27 AM
On 3/20/2013 8:21 AM, P
r-help@r-project.org
Subject: Re: [R] how to skip part of the code
Dear Pikal and Robert,
thanks for the help, I guess trying the if function is worth it, and indeed, it
works for the example I provided. Unfortunatelly though I am not getting the
expected results with my actual code, which is a
Are
you perhaps dealing with a samll non-zero 'e' that prints as zero at
the console? Check Faq 7.31.
Also:
?all.equal
?zapsmall
--
David.
--- On Wed, 3/20/13, Robert Baer wrote:
From: Robert Baer
Subject: Re: [R] how to skip part of the code
To: "PIKAL Petr"
Hi,
set.seed(24)
dat1<- data.frame(a=1:5,b=2:6,e=sample(c(0,1,2),5,replace=TRUE))
merge(within(subset(dat2,e>0),d<-a+b),within(subset(dat2,e==0),f<-a-b),all=TRUE)
# a b e d f
#1 1 2 0 NA -1
#2 2 3 0 NA -1
#3 3 4 2 7 NA
# 4 5 1 9 NA
#5 5 6 1 11 NA
A.K.
- Original Message -
From:
of the model in OpenBUGS,
which is what is happening currently with the way it is written here. Any
thoughts on how to completiley "ignorre" a that line or chunk?
thanks,
Andras
--- On Wed, 3/20/13, Robert Baer wrote:
From: Robert Baer
Subject: Re: [R] how to skip part of the
On 3/20/2013 8:21 AM, PIKAL Petr wrote:
Hi
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of Andras Farkas
Sent: Wednesday, March 20, 2013 2:11 PM
To: r-help@r-project.org
Subject: [R] how to skip part of the code
Dear All,
anoth
Hi
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Andras Farkas
> Sent: Wednesday, March 20, 2013 2:11 PM
> To: r-help@r-project.org
> Subject: [R] how to skip part of the code
>
> Dear All,
>
> another quick question, this
8 matches
Mail list logo