I have a numpy array as given, corresponding to x,y coordinates. I am searching for a way to convert this into ppp point structure to perform spatial analysis using spatstat tool in R via rpy2.
points=array([[ 181.124067 , 58.2029135],
[ 17.9539667, 123.397744 ],
[ 173.539929 , 24.6389491],
...,
[ 250.767528 , 182.099229 ],
[ 250.049724 , 11.2006333],
[ 228.186125 , 251.200863 ]])
Ideally I would like to convert this into ppp using rpy2. I also tried to write numpy into csv and read that into R. However it still doesn't recognize it as ppp structure.