Hello,

I have written a code that nead to convert SpatialLinesDataFrame to psp in order to use statstat functions.

This functiun works well.
The problem is that when the shapefile is to big (all the little rivers of a region for example: 3000), the as.psp function doesn't return anything and var2 is nothing:

if (class(var)=="SpatialLinesDataFrame")

{var@data<-data.frame(c(1:dim(var@data)[1])) 

var2<-as(var,"psp")}

When I just select a few rivers (100), no problem.

Does anyone know how to solve it?






      
	[[alternative HTML version deleted]]

