ColonisationStats function #51
Unanswered
ellalewi547
asked this question in
Q&A
Replies: 1 comment
-
|
Hi Ella, |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! I wondered if you could help me understand how to run the ColonisationStats in cases where I want to reimport the data from my files rather than in my current workspace as the master_parameter object.
From the details of the function I have attempted the following code, which gives me an error message that my habitat patch file is not a Raster Layer or Raster Stack, however it is shown in my workspace environment as being a Raster Layer:
patches1 <- raster(paste0(dirpath,'Inputs/Final habitat patch V7.asc')) colonisation <- read.table(paste0(dirpath,"Outputs/Batch1_Sim80_Land1_Pop.txt"), header = T) col <- ColonisationStats(colonisation, patches1, years = numeric(100))Would you be able to guide me to where I am going wrong?
Apologies for my incompetence - I'm not the best with coding.
Thank you for your help,
Ella
Beta Was this translation helpful? Give feedback.
All reactions