[R-sig-Geo] adehabitatLT: Selecting ltraj with nb.reloc > [minimum sample size]

afischbach afischbach at usgs.gov
Tue Jun 7 23:25:46 CEST 2011

Sorry to answer my own inquiry.

I found a brute force means to perform the selection:

	sniffer <-summary(ltraj[i])
	if(sniffer$nb.reloc > nMin){ 
        [perform ud analysis on ltraj[i] here] ...
        } #end if

Certainly, there must be an elegant means to handle the nb.reloc variable

afischbach wrote:
> ...a simple means of selecting the trajectories that have no.reloc greater
> than a specified valeu, such as
> nMin <- #some minimum number or relocations#
> ltraj <- ltraj[no.reloc > nMin]

Tony Fischbach, Wildlife Biologist
Walrus Research Program
Alaska Science Center
U.S. Geological Survey
4210 University Drive
Anchorage, AK 99508-4650

AFischbach at usgs.gov
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/adehabitatLT-Selecting-ltraj-with-nb-reloc-minimum-sample-size-tp6451264p6451458.html
Sent from the R-sig-geo mailing list archive at Nabble.com.

More information about the R-sig-Geo mailing list