[R-sig-eco] NA in species scores using capscale in vegan

2013-11-07 Thread Duarte Viana
Hello all, I am doing a CAP (or dbRDA) in vegan, using the function capscale, where the response is a dissimilarity matrix (Sorensen's distance index) and the explanatory matrix consists of 19 variables. The code runs apparently fine, but the species scores appear as NA (site scores are properly

Re: [R-sig-eco] NA in species scores using capscale in vegan

2013-11-07 Thread Jari Oksanen
On 07/11/2013, at 12:05 PM, Duarte Viana wrote: Hello all, I am doing a CAP (or dbRDA) in vegan, using the function capscale, where the response is a dissimilarity matrix (Sorensen's distance index) and the explanatory matrix consists of 19 variables. The code runs apparently fine, but

Re: [R-sig-eco] NA in species scores using capscale in vegan

2013-11-07 Thread Duarte Viana
Hi Jari, No, I completely missed that argument. It now provides the species scores. Thanks a lot, Jari. Cheers, Duarte On Thu, Nov 7, 2013 at 11:11 AM, Jari Oksanen jari.oksa...@oulu.fi wrote: On 07/11/2013, at 12:05 PM, Duarte Viana wrote: Hello all, I am doing a CAP (or dbRDA)

[R-sig-eco] Error message using getverticeshr() to extract home-range contours

2013-11-07 Thread Dylann Kersusan
Dear list, I am running a script on my computer to estimate kernelUDs for several individuals and several years (from GPS relocations). I am using the getverticeshr() function to extract home range contours, and for some reasons I end up having this error message: Erreur dans re[[i]] : indice

Re: [R-sig-eco] Error message using getverticeshr() to extract home-range contours

2013-11-07 Thread Roman Luštrik
Perhaps you could show us your code. Are you using a loop? Cheers, Roman On Thu, Nov 7, 2013 at 4:23 PM, Dylann Kersusan kersusan.dyl...@gmail.comwrote: Dear list, I am running a script on my computer to estimate kernelUDs for several individuals and several years (from GPS relocations).

Re: [R-sig-eco] Error message using getverticeshr() to extract home-range contours

2013-11-07 Thread Sarah Goslee
Hi Dylann, All we can possibly tell you is that the index is out of range. That's the kind of problem that really needs a reproducible example for anyone to be able to give you useful advice. Here's some advice on doing so:

Re: [R-sig-eco] Error message using getverticeshr() to extract home-range contours

2013-11-07 Thread Dylann Kersusan
Dear list, I am running a script on my computer to estimate kernelUDs for several individuals and several years (from GPS relocations). I am using the getverticeshr() function to extract home range contours, and for some reasons I end up having this error message: Erreur dans re[[i]] : indice

Re: [R-sig-eco] Error message using getverticeshr() to extract home-range contours

2013-11-07 Thread Dylann Kersusan
Sorry for the first thread, it was incomplete! There you have a sample of my dataset and coding. Cheers, 2013/11/7 Dylann Kersusan kersusan.dyl...@gmail.com Dear list, I am running a script on my computer to estimate kernelUDs for several individuals and several years (from GPS

Re: [R-sig-eco] Error message using getverticeshr() to extract home-range contours

2013-11-07 Thread Roman Luštrik
Put a browser() call as the first line inside the if() {} statement and run the chunk of code. Program will pause at the line of browser() and then you can step through the code to see the offending line. Another way would be to see the trace stack of traceback(), a function you run after you get

Re: [R-sig-eco] Error message using getverticeshr() to extract home-range contours

2013-11-07 Thread Dylann Kersusan
And here comes the entire script. Hope it will help. #hr_data$date - paste(hr_data$day, hr_data$month, hr_data$year, sep=-) hr_data$Date_time2 - paste(hr_data$UTC_DATE, hr_data$UTC_TIME, sep= ) hr_data$Date_time2 - as.POSIXct(strptime((hr_data$Date_time2), %d/%m/%Y %H:%M:%S), tz=GMT)

Re: [R-sig-eco] Error message using getverticeshr() to extract home-range contours

2013-11-07 Thread Clement Calenge
Hi Dylann, On 11/07/2013 04:30 PM, Sarah Goslee wrote: Hi Dylann, All we can possibly tell you is that the index is out of range. That's the kind of problem that really needs a reproducible example for anyone to be able to give you useful advice. Here's some advice on doing so:

[R-sig-eco] Data Frame Structure for vegdist()

2013-11-07 Thread Rich Shepard
I have data frames on which I want to calculate the default Bray-Curtis dissimilarity matrix using vegdist() in the vegan package. The data are proportions of individuals in each of 5 categories with the first column as the collection date. One such data frame is: sampdate filter gather