Replies: 1 comment
-
Version 3 Changes Support for creating samc-class objects from TransitionLayer objects was removed so that the package is not dependent on gdistance. Version 2 Changes Version 1.5.0 officially removed support for the deprecated resistance, tr_fun, directions, p_mat, latlon, and override arguments. Old code will have to be updated to the new samc() function structure in order to work. All simulations were performed in R using the samc Haha, it is correct not to run correctly |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
when I running the following code
#get using TransitionLayer + Ne + Site locations using custom function
#custom function needed to change absorption in a pairwise manner for creating cfpt matrix
cfpt_land <- cfptRasterSAMC(TransitionLayer = land_cond,
popsize = Ne$Ne,
sites = points_spdf)
I get the error message:
unable to find an inherited method for function ‘samc’ for signature ‘"TransitionLayer", "RasterLayer", "missing", "missing"’
In samc's example, we can input data with RasterLayer format, but not TransitionLayer.
I don't know what is causing reason for error.
Beta Was this translation helpful? Give feedback.
All reactions