Hello

 I am currently studying spatial distribution of lizards in Spain and
Germany. For this I am using the spatstat package of R to make a
Kolmogorov-Smirnov
test of CSR of unmarked points data.

I have problems transforming the data to ppp class, and I would like to know
if you can help me. I have already made the test with the data of
 'japanesepines' that comes with the package, and is very easy, I could do
it. But when trying with my own dataframe, I cannot transform them to ppp
class, this is what appears:

p<-ppp(x,y, c(0,40), c(0,80))
Error en ppp(x, y, c(0, 40), c(0, 80)) :
  coordinate vectors x and y are not of equal length


So, I checked the manuals, the R book and also the summary of the
'japanesepines' file, to know how to make the .txt table, for the data to be
already read as ppp class, but it doesn´t result neither. I made a table
with a "w" column with the coordenates written (0,40,0,0,80), another column
"n" with the number of individuals, and the columns "x" and "y" with the
coordinates. But it doesn´t work. I am not using any mask

I'd really appreciate if you can help me solving this problem, that for sure
is not complicated, but for me is tricky cause is my first time analysing
spatial data with R.

All the best,

-- 
Ana María Prieto Ramírez
Bsc. Biology
Universidad Militar Nueva Granada
Bogotá, Colombia
Student, Msc. Ecology
University of Bremen, Germany

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to