Comments (4)
If you look at the first example, you see that evaluate only uses arguments p
and a
, both a vector.
from dismo.
Looking at the function definition, I guess I hit the case when x
is missing and a
and p
are not vectors. In this particular case, it goes to the else
branch and will use the model
to predict. Hence my question.
library("dismo")
# with matrices instead
p <- matrix(rnorm(50), ncol = 2)
a <- matrix(rnorm(50), ncol = 2)
e <- evaluate(p=p, a=a)
Error in predict(model, data.frame(p), ...) :
argument "model" is missing, with no default
I guess the rest of the documentation does hint at that, but the description of the model
argument got me confused as I took it on its own. Should it say "Not used when x is missing (and both a and p are vectors)"?
from dismo.
Thanks for the clarification. I regret the way I designed this function. It is too complex, it should have been at least two functions. (even if it is not as bad as stats::reshape). I have updated the docs per your suggestion.
from dismo.
No problem, thank you for the prompt reply! And thank you for all your work for R Spatial
from dismo.
Related Issues (20)
- gbm.step() doesn't iterate for large continuous response variables
- RandomPoints output HOT 2
- gridSample: return spatialPoints object rather than matrix? HOT 1
- java.awt.HeadlessException error running maxent through rJava HOT 1
- gbm.plot add param 'centered' to omit response data centering
- predicted value 0 when working with response() function HOT 1
- problems loading raster package HOT 3
- package βdismoβ is not available (for R version 3.6.3) HOT 3
- Error when running ecocrop() function
- Citing GBIF data properly
- Convex Hull not working properly in version 1.3-5 HOT 1
- 'terra' input formats HOT 2
- gbm.step unable to fit some models HOT 1
- circles() fails again (still?) at -180 lon HOT 1
- R stops working when I try to run maxent() HOT 2
- install Error HOT 1
- minor typo in xlab of plot function HOT 1
- Can gbm.step (and other functions) have a line to automatically convert input data to data.frame OR warn if tibble, etc.?
- Had some issues with factor plotting in ggPD_boot, plus y axis scale not responding to common.scale. 'Fixed' version attached
- Add exportMethods(plot) & exportClasses(ModelEvaluation) to NAMESPACE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dismo.