Re: [R-sig-eco] NA error in envfit

2013-12-06 Thread Jari Oksanen
On 05/12/2013, at 18:42 PM, Dixon, Philip M [STAT] wrote: I wonder if the problem is a factor level with no observations. One of the frustrating things about factors (class variables) in R is that the list of levels is stored separately from the data. This can cause all sorts of

Re: [R-sig-eco] NA error in envfit

2013-12-06 Thread Gavin Simpson
Phillip, You approach to using factors misses an important consideration; the class that was observed in the full dataset should not disappear just because you subsetted the data in some manner. Also, `droplevels()` is a useful function to call on a factor or data frame if subsetting produces

Re: [R-sig-eco] NA error in envfit

2013-12-06 Thread Mitchell, Kendra
From: Gavin Simpson [ucfa...@gmail.com] Sent: Friday, December 06, 2013 11:09 AM To: Dixon, Philip M [STAT] Cc: Mitchell, Kendra; r-sig-ecology@r-project.org Subject: Re: [R-sig-eco] NA error in envfit Phillip, You approach to using factors misses an important consideration

Re: [R-sig-eco] NA error in envfit

2013-12-06 Thread Jari Oksanen
University of British Columbia 604-822-5646 From: Gavin Simpson [ucfa...@gmail.com] Sent: Friday, December 06, 2013 11:09 AM To: Dixon, Philip M [STAT] Cc: Mitchell, Kendra; r-sig-ecology@r-project.org Subject: Re: [R-sig-eco] NA error in envfit

Re: [R-sig-eco] NA error in envfit

2013-12-05 Thread Jari Oksanen
22:01 To: Mitchell, Kendra Cc: r-sig-ecology@r-project.org Subject: Re: [R-sig-eco] NA error in envfit Kendra, Something is wrong in X or P; find out what the foreign function call is and then you may be able to track down the offending data problem. Maybe a logarithm somewhere? This is probably

Re: [R-sig-eco] NA error in envfit

2013-12-05 Thread Eduard Szöcs
...@auburn.edu] Sent: 04 December 2013 22:01 To: Mitchell, Kendra Cc: r-sig-ecology@r-project.org Subject: Re: [R-sig-eco] NA error in envfit Kendra, Something is wrong in X or P; find out what the foreign function call is and then you may be able to track down the offending data problem

Re: [R-sig-eco] NA error in envfit

2013-12-05 Thread Hadley Wickham
# install vegan from github install_github('vegan', 'jarioksa') BTW I recommend using this form: install_github('jarioksa/vegan') Hadley -- http://had.co.nz/ ___ R-sig-ecology mailing list R-sig-ecology@r-project.org

Re: [R-sig-eco] NA error in envfit

2013-12-05 Thread Jari Oksanen
-ecology@r-project.org Aihe: Re: [R-sig-eco] NA error in envfit # install vegan from github install_github('vegan', 'jarioksa') BTW I recommend using this form: install_github('jarioksa/vegan') Hadley -- http://had.co.nz/ ___ R-sig-ecology mailing

[R-sig-eco] NA error in envfit

2013-12-05 Thread Dixon, Philip M [STAT]
Kendra, I wonder if the problem is a factor level with no observations. One of the frustrating things about factors (class variables) in R is that the list of levels is stored separately from the data. This can cause all sorts of problems if you create the factor, then subset the data, and

Re: [R-sig-eco] NA error in envfit

2013-12-05 Thread Mitchell, Kendra
Thanks, I think it was the odd variable that was named f.env$zone I removed that column and suddenly things started working -- Kendra Maas Mitchell, Ph.D. Post Doctoral Research Fellow University of British Columbia 604-822-5646 From: Dixon, Philip M [STAT]

Re: [R-sig-eco] NA error in envfit

2013-12-05 Thread Mitchell, Kendra
From: r-sig-ecology-boun...@r-project.org [r-sig-ecology-boun...@r-project.org] on behalf of Jari Oksanen [jari.oksa...@oulu.fi] Sent: Thursday, December 05, 2013 7:04 AM To: Eduard Szöcs; Hadley Wickham Cc: r-sig-ecology@r-project.org Subject: Re: [R-sig-eco] NA error in envfit It is easy

Re: [R-sig-eco] NA error in envfit

2013-12-05 Thread Hadley Wickham
Wickham Lähetetty: 05.12.2013, 16:19 Vastaanottaja: Eduard Szöcs Kopio: r-sig-ecology@r-project.org Aihe: Re: [R-sig-eco] NA error in envfit # install vegan from github install_github('vegan', 'jarioksa') BTW I recommend using this form: install_github('jarioksa/vegan') Hadley -- http

Re: [R-sig-eco] NA error in envfit

2013-12-04 Thread Stephen Sefick
Kendra, Something is wrong in X or P; find out what the foreign function call is and then you may be able to track down the offending data problem. Maybe a logarithm somewhere? This is probably not much help; I don't have much experience with envfit. Stephen On 12/03/2013 07:06 PM,

[R-sig-eco] NA error in envfit

2013-12-03 Thread Mitchell, Kendra
I'm running a bunch of NMS with vectors fitted (slicing and dicing a large dataset in different ways). I'm suddenly getting an error from envfit f.bSBS.org.fit-envfit(f.bSBS.org.nms, f.bSBS.org.env, permutations=999, na.rm=TRUE) Error in vectorfit(X, P, permutations, strata, choices, w = w,