我试图避免手动运行 ~250 克拉克和埃文斯测试 (clarkevans.test)。
我在 excel 文件中有一个 xmin、xmax、ymin、ymax 坐标表,其中每一行都是操作窗口的尺寸。
在将 excel 文件 (read.csv) 读入 RI 后,似乎无法获得任何形式的“应用”和“owin”来协同工作以为每一行输出一个 owin。最终我需要创建 ppp 并以类似的方式运行 clarkevans.test,但现在我只需要第一步的帮助。
coordin<-read.csv("Coordin.csv")
cdf<-data.frame(coordin)
> cdf
xmin xmax ymin ymax
1 456741 456841 3913505 3913605
2 453341 453441 3915805 3915905
3 453441 453541 3915805 3915905
4 452441 452541 3915705 3915805
5 453741 453841 3915705 3915805
我已经尝试了几种变体,但我无法得到任何工作。
lapply(cdf, function(x) owin(xmin, xmax, ymin, ymax))