I need to use a custom kernel with the Smooth function, but attempting this throws an error even though I specify cutoff:
Error: The argument ‘cutoff’ is required when a non-Gaussian kernel is specified and scalekernel=FALSE
n=4; PPP=ppp(rep(1:n,n),rep(1:n,each=n), c(1,n),c(1,n), marks=1:n^2);
Smooth.ppp(PPP,cutoff=50,kernel=gaussian,at="points")
Here is a toy example that makes the same error. I'm not 100% sure whether this is an error or something that's unintuitive to me. Thank you!!