statnmap / sdmselect Goto Github PK
View Code? Open in Web Editor NEWCross-validation model selection and species distribution mapping
Home Page: https://statnmap.github.io/SDMSelect
License: GNU General Public License v3.0
Cross-validation model selection and species distribution mapping
Home Page: https://statnmap.github.io/SDMSelect
License: GNU General Public License v3.0
I have come across an error when running the Param_corr function, error which appears on my own data but also in the example data used in the vignettes, (mtcars & bradypus), even when the data preparation is followed along thoroughly. This error still persists after I force updates on all the package dependency, it is to this day the only function that doesn’t work, which prevent me from going further in the use of the package.
Here is a simple version of the code that leads to this error (taken from the covariate selection vignette)
tmpdir <- paste0(tempdir(), "/out_CovarSelection")
dir.create(tmpdir)
data <- dplyr::mutate_at(mtcars, 8:11, as.character)
data.new <- Prepare_dataset(
x = data, var = 1, cov = 2:ncol(data),
datatype = "Cont", na.rm = TRUE
)
corSpearman <- Param_corr(
x = data.new, rm = 1, thd = 0.7, visual = FALSE,
plot = TRUE, saveWD = tmpdir, img.size = 5)
The error message is the following ;
Erreur : Can't subset columns that don't exist.
x Column `rowname` doesn't exist.
Running traceback takes me back to this particular function tidyr:::gather.data.frame(., key = "Var2", value = "Corr", -rowname)
Which seems to call for a rowname column which is non existent.
For more information, here is a few look at the data.new which seems fine after being prepared
head(data.new)
dataY cyl disp hp drat wt qsec factor_vs factor_am factor_gear factor_carb
Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1
Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1
Hornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2
Valiant 18.1 6 225 105 2.76 3.460 20.22 1 0 3 1
And the column parsing.
str(data.new)
'data.frame': 32 obs. of 11 variables:
$ dataY : num 21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ...
$ cyl : num 6 6 4 6 8 6 8 4 4 6 ...
$ disp : num 160 160 108 258 360 ...
$ hp : num 110 110 93 110 175 105 245 62 95 123 ...
$ drat : num 3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ...
$ wt : num 2.62 2.88 2.32 3.21 3.44 ...
$ qsec : num 16.5 17 18.6 19.4 17 ...
$ factor_vs : chr "0" "0" "1" "1" ...
$ factor_am : chr "1" "1" "1" "0" ...
$ factor_gear: chr "4" "4" "4" "3" ...
$ factor_carb: chr "4" "4" "1" "1" …
I am running the latest version of R on Mac OS Mojave 10.14.6.
I use my own environment grid, but I cannot use CovarExtract (), suggesting Error in rgdal :: showEPSG (x): Can't parse PROJ.4-style parameter string
Hello,
When I try installing SDMSelect using:
remotes::install_github("statnmap/SDMSelect")
It gives me a list of packages to update, so I enter 3 and skip updating. But then I get this error:
Error: Failed to install 'SDMSelect' from GitHub:
(converted from warning) installation of package ‘C:/Users/saadb/AppData/Local/Temp/RtmpGMW07o/file41e45f1347e9/SDMSelect_0.1.6.tar.gz’ had non-zero exit status
How can I fix this issue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.