Re: [R] problems with ifelse??

2011-07-11 Thread Berend Hasselman
David Winsemius wrote: > > On Jul 10, 2011, at 9:09 PM, mousy0815 wrote: > >> I have the following code to determine the probability of a t-cell >> encountering an antigen after "m" steps. >> >> probability <- function(N, f, m, b, x, t) { #using ifelse instead of >> if/else >> #N is the n

Re: [R] problems with ifelse??

2011-07-10 Thread mousy0815
This fixed my problem thanks. -- View this message in context: http://r.789695.n4.nabble.com/problems-with-ifelse-tp3658498p3658543.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/

Re: [R] problems with ifelse??

2011-07-10 Thread David Winsemius
On Jul 10, 2011, at 9:09 PM, mousy0815 wrote: I have the following code to determine the probability of a t-cell encountering an antigen after "m" steps. probability <- function(N, f, m, b, x, t) { #using ifelse instead of if/else #N is the number of lymph nodes #f is the fraction

[R] problems with ifelse??

2011-07-10 Thread mousy0815
I have the following code to determine the probability of a t-cell encountering an antigen after "m" steps. probability <- function(N, f, m, b, x, t) { #using ifelse instead of if/else #N is the number of lymph nodes #f is the fraction of Dendritic cells (in the correct node) that