[R-sig-Geo] Help with ENFA in R

Alexandre Villers villers.alexandre at gmail.com
Mon Apr 15 12:23:26 CEST 2013


Hi,

Typing ?enfa (after loading adehabitatHS) and searching through the 
examples that are provided, you should find these lines

## We prepare the data for the ENFA
tab <- slot(map, "data")
pr <- slot(count.points(locs, map), "data")[,1]

Maybe you could start with this, i.e. understanding how the pr object is 
obtained, playing with the example.
And then, if you really don't get it, ask someone on the list to help you.

HTH

Alex


On 15/04/2013 12:39, JonathanAronson wrote:
> Hi there
>
> I have been working on this over the weekend. I have managed to make some
> progress.
> Now I am trying to run the enfa using this code: enfa(pc, pr, scan=FALSE).
>
> I can define pc using my text file of the locality data for my species using
> this code: pc <- dudi.pca(locs, scannf=FALSE). However, now I need to define
> pr and Im not sure if that refers to my environmental data. The error I get
> is below. How can I create the pr vector?
>
> Error in is.vector(pr) : object 'pr' not found
>
> Any help would be greatly appreaciated
>
> Thanks all
> Jonathan
>
>
>
> --
> View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Help-with-ENFA-in-R-tp7583243p7583315.html
> Sent from the R-sig-geo mailing list archive at Nabble.com.
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>

--



More information about the R-sig-Geo mailing list