help with spatstat ppp transformation data

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

help with spatstat ppp transformation data

Ana_eidechse
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]]


______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|

Re: help with spatstat ppp transformation data

jai1408
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: help with spatstat ppp transformation data

jai1408
Hi,
Did you receive a solution to your problem. I have a 3-D data set. X, Y and Z co ordinates. I want to read it as ppp data to be able to use it to find Kestimate. Do let me know if you had any success and how you did it.
Thanks.