I am trying to run a K test comparison on 2 subsets of ppp data using studpermu.test The only example I can find uses hyperframe (pyramidal see https://rdrr.io/cran/spatstat