
Dear R-List, I've got a Shape-File and read it in with the readShapePoints()-function to perform a point pattern analysis. But in this way the decimal places of the coordinates are shortened from 4 on 1 decimal places and so I get a lots of duplicated points. How can I retain all decimal places?A few Points have really the same coordinates, where I want to add a minimal random fluctuation in the x and y direction (e.g. after the third decimal place). If I use the jitter()-function my fluctuations are too large. So I tried to control it with the amount argument, but I can't find a solution (see code below).... How can I restrict them to the decimal places? Thanks a lot for your help!Best regardsEva v1 <- c(428381.6, 428871.6, 408027.2, 406870.4)v2 <- c(293884.6, 292929.8, 292621.0, 292014.1)test <- as.data.frame(cbind(v1, v2))colnames(test) <- c("x", "y")coordinates(test) <- c("x","y")class(test)#doesnt workr <- runif(length(v1), -0.01, 0.01)jitter(test$x, amount = test$x + r)jcoord <- cbind(jitter(test[,1], amount = test[,1] + r),jitter(test[,2], amount = test[,2] + r)) 
_________________________________________________________________


	[[alternative HTML version deleted]]


