Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'stack': 'newdata' does not have named columns matching one or more of the original columns #356

Open
jmfox2354 opened this issue Nov 13, 2023 · 4 comments

Comments

@jmfox2354
Copy link

Hello All,

I have been unable to get the ENMTML function to run so far. Despite several changes I've attempted to the code I keep getting this error message:

Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'stack': 'newdata' does not have named columns matching one or more of the original columns

The code I am using is:
ENMTML(pred_dir = "C:/Users/16321/Downloads/ENMTML/WorldClim 2.5 Arc Minute",
proj_dir = "C:/Users/16321/Downloads/ENMTML/Projections",
result_dir = "TestResults",
occ_file = "C:/Users/16321/Downloads/ENMTML/Occurences/Canis.lupus.final.csv",
sp = "scientific name",
x = "longitude",
y = "latitude",
min_occ = 10,
thin_occ = c(method='MORAN'),
eval_occ = NULL,
colin_var = c(method='PCA'),
imp_var = FALSE,
sp_accessible_area = NULL,
pseudoabs_method=c(method='RND'),
pres_abs_ratio = 1,
part = c(method='BOOT', replicates='2', proportion='0.7'),
save_part = FALSE,
save_final = TRUE,
algorithm = c('MXS'),
thr = c(type='MAX_TSS'),
msdm = NULL,
ensemble = c(method='PCA'),
extrapolation = FALSE,
cores = 1)

The output shows this before the error stops it:
Checking for function arguments ...
Loading environmental variables ...
RasterBrick successfully created!
Performing a reduction of variables collinearity ...

If anyone has had luck resolving this issue or has an idea on how to resolve it I would really appreciate the help!

Thanks!

@Anaflavia28
Copy link

Hi!

Did you solve the error? I am having the same issue.

Thanks!

@rodrigogorsani
Copy link

Hi,

I am having the same issue. Has someone found any solution?

Thanks!

@rodrigogorsani
Copy link

@Anaflavia28 did you find a solution for this issue?

Thanks.

@Anaflavia28
Copy link

@Anaflavia28 did you find a solution for this issue?

Thanks.

Hi all!

I could solve it using other version of R. I used version 4.2.1 and it worked.

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants