Skip to content
Discussion options

You must be logged in to vote

Hey,
there are two issues with your input files. The first issue is causing R to crash.

  1. RangeShiftR expects the NA values in your landscape files to be integers and not character strings (e.g. -999 instead of nan) So you would need to replace all nan strings in your files with a number (I advise to take a negative number like -999)
  2. Your species distribution file should only contain either 0 (species absent) or 1 (species present) (see ?ImportedLandscape) but not double values (1.0 in your case). The NAs seem not to be a problem if you don't use strings for NAs.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Smoellmund
Comment options

Answer selected by Smoellmund
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants