Re: [R] [] for R

2009-08-25 Thread Liviu Andronic
On 8/24/09, kfcnhl wrote: > I am assuming the variable out is the output parameter. > However, I don't understand what is out[1+xi*xx>0]? > Can someone explain this to me? > http://www.statmethods.net/management/subset.html Liviu __ R-help@r-projec

Re: [R] [] for R

2009-08-25 Thread Vitalie S.
see ?[ For '['-indexing only: 'i, j, ...' can be logical vectors, indicating elements/slices to select. Such vectors are recycled if necessary to match the corresponding extent. 'i, j, ...' can also be negative integers, indicating elements/slic

[R] [] for R

2009-08-25 Thread kfcnhl
I am assuming the variable out is the output parameter. However, I don't understand what is out[1+xi*xx>0]? Can someone explain this to me? Thanks in advance, Chen dGEV <- function(x, xi, mu = 0, sigma = 1, logvalue=FALSE) { xx <- (x-mu)/sigma #use the new dGumbel which passes mu and