Hello geo-savvy R people,

I am new to this list so please be forgiving if I don't include everything
that is needed.  I am having trouble with some code I wrote using the
gdistance package.

#I loaded an ESRI ascii grid file
cost <- read.asciigrid("filepath", as.image = F, plot.image=F,, proj4string
= CRS("+proj=utm +zone=45N +datum=WGS84 +ellps=WGS84"))
cost <- raster(cost)
cost <- trim(cost) #tried this line to remove the large number of NA values
but didn't fix anything
cT <- transition(cost, mean, 8)

#then I got the following error

Error in rbind(deparse.level, ...) :
  resulting vector exceeds vector length limit in 'AnswerType'

Any advice for a better process or a good work-around?  I am trying to stay
within the gdistance package because I am using many of the other commands
(shortestPath, costDistance, etc.)

I really appreciate any help anyone can lend with this problem.

Cheers,

IC

	[[alternative HTML version deleted]]

