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

Clement Calenge clement.calenge at oncfs.gouv.fr
Wed Apr 10 10:05:28 CEST 2013


Dear Jonathan,

To import the maps, have a look at the function readAsciiGrid from the 
package maptools.
To import the points, read.csv or read.table (use your prefered way to 
import data in R).
Con
HTH,

Clément Calenge.

On 04/10/2013 09:59 AM, JonathanAronson wrote:
> Hi Mathieu
>
> Thank you again. You are really helping  me. Please forgive some of my
> questions because I am very knew to R and I have to teach this to myself.
>
> AdehabitatHS is using a different method to read the raster files. So when I
> input this code: var1<- import.asc("Data/bio_01.asc") I get the following
> error - Error: could not find function "import.asc". This makes sense to me
> because sp classes are used. I have read both the vignettes and used the
> example code for the lynx data but I am still struggling to interpret what
> the vignettes are saying and to use my own data. The code map <-
> lynxjura$map seems to contain all the environmental data. I am not sure how
> to use the sp package to get my 15 environmental variables into a similar
> dataframe. The same goes for my csv files - do I still need to use read.csv
> or should I rather use something like $locs.
>
> Thank you again
> Jonathan
>
>
>
>
>
>
> --
> View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Help-with-ENFA-in-R-tp7583243p7583264.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
>


-- 
Clément CALENGE
Cellule d'appui à l'analyse de données
Direction des Etudes et de la Recherche
Office national de la chasse et de la faune sauvage
Saint Benoist - 78610 Auffargis
tel. (33) 01.30.46.54.14



More information about the R-sig-Geo mailing list