NĂºria Roura
2007-Dec-04 17:14 UTC
[R] How can I use Adehabitat to obtain an .asc object with the predicted values of a niche model?
Dear all, I'm using the package adehabitat in R to import several .asc files (=matrix), and also create a kasc object (=dataframe) with all of them. The main idea is to use this kasc object to map the predicted values of climate-matching model for an overall area. However, I don't know how to proceed: Do I have to project the model (already stored in R) onto the kasc object directly, or convert the kasc object to a data frame where each row refers to a pixel? On the other hand, I would also like to know how to obtain the XY coordinates for each row of the kasc object. Thank you very much. Cheers, N?ria Roura -- View this message in context: http://www.nabble.com/How-can-I-use-Adehabitat-to-obtain-an-.asc-object-with-the-predicted-values-of-a-niche-model--tf4944431.html#a14155047 Sent from the R help mailing list archive at Nabble.com.
Thibaut Jombart
2007-Dec-04 17:37 UTC
[R] How can I use Adehabitat to obtain an .asc object with the predicted values of a niche model?
N?ria Roura wrote:>Dear all, >I'm using the package adehabitat in R to import several .asc files(=matrix), and also create a kasc object (=dataframe) with all of them. >The main idea is to use this kasc object to map the predicted values ofclimate-matching model for an overall area. However, I don't know how toproceed: Do I have to project the model (already stored in R) onto the kascobject directly, or convert the kasc object to a data frame where each rowrefers to a pixel? >On the other hand, I would also like to know how to obtain the XYcoordinates for each row of the kasc object. >Thank you very much. Cheers, >N?ria Roura >-- View this message in context: http://www.nabble.com/How-can-I-use-Adehabitat-to-obtain-an-.asc-object-with-the-predicted-values-of-a-niche-model--tf4944431.html#a14155047Sent from the R help mailing list archive at Nabble.com. >______________________________________________R-help at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code. > > > >Dear Nuria, The mailing list devoted to adehabitat may be a better place for your post. See: http://www.faunalia.com/cgi-bin/mailman/listinfo/animov Regards, Thibaut. -- ###################################### Thibaut JOMBART CNRS UMR 5558 - Laboratoire de Biom?trie et Biologie Evolutive Universite Lyon 1 43 bd du 11 novembre 1918 69622 Villeurbanne Cedex T?l. : 04.72.43.29.35 Fax : 04.72.43.13.88 jombart at biomserv.univ-lyon1.fr http://lbbe.univ-lyon1.fr/-Jombart-Thibaut-.html?lang=en http://pbil.univ-lyon1.fr/software/adegenet/