Dear forum members,

Today, I upgraded my R with 3.0.2. I was going to use my old code for MCP
calculation using adehabitat. But when I was going use mcp.area calculation
it says, i do need gpclib. Unfortunately new version of R don't have gpclib
packages. I was trying to do with adehabitatHR but now luck yet. could
anyone help to calculated mcp.area from my data.

I have used following code for my calculation.

mcpdata1<-read.csv("DataMCPKernel.csv",header=T)
attach(mcpdata1)

XY=mcpdata1[,c("x","y")]
id=mcpdata1[,c("Stage")] 

HrMcp<-mcp.area(XY,id)
#When I do run above command following error message pop up.
Loading required package: gpclib
Failed with error:  ‘‘gpclib’ is not a valid installed package’
Error in mcp.area(XY, id) : package gpclib required

I would greatly appreciate if you get me any suggestion (I tried to follow
adehabitatHR example but sorry to say not having any luck with my data).  

My data: 

Stage               x               y
incubation      646446.9        5213729
incubation      646395.1        5213765
incubation      646395.1        5213765
incubation      646395.1        5213765
incubation      646382.5        5213783
incubation      646395.1        5213765
incubation      646395.5        5213746
incubation      646665  5213605
incubation      645684.8        5213821
incubation      646396  5213727
incubation      648337.4        5214609
incubation      643467.4        5214935
incubation      646395.1        5213765
incubation      642319.7        5214203
incubation      646244.7        5214224
incubation      643306.7        5214227

Kind regards
Lutfor



--
View this message in context: 
http://r-sig-geo.2731867.n2.nabble.com/mcp-calculation-tp7585219.html
Sent from the R-sig-geo mailing list archive at Nabble.com.

_______________________________________________
R-sig-Geo mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to