Re: [R] confused with indexing

2012-05-22 Thread Jim Holtman
use is.null for the test if (is.null(indexSkipped)) Sent from my iPad On May 22, 2012, at 2:10, Alaios wrote: > Dear all, > I have a code that looks like the following (I am sorry that this is not a > reproducible example) > > > indexSkipped<-NULL > > > > code Skipped that might

[R] confused with indexing

2012-05-22 Thread Alaios
Dear all, I have a code that looks like the following (I am sorry that this is not a reproducible example)     indexSkipped<-NULL  code Skipped that might alter indexSkipped     if (length(indexSkipped)==0)         spatial_structure<-spatial_structures_from_measurements(DataList[[i]]$L