Comments (5)
Yeah, I agree it's important but I'm not sure how to include it in returned objects. I suppose one approach would be to add this information to the object's attributes? One can add a variety of info to objects this way.
For example:
# create vector
x <- 1:5
# add attribute
attr(x, "note") <- "information"
# print object
print(x)
# access data in attribute
attr(x, "note")
from prioritizr.
Attributes is certainly one way. Would a named list work too?
Maybe as a standard the first item being the solution raster and the rest with structured order. If the solution raster is NA (cases where no spatial data was supplied) list[[2]] could be the output df? Not sure if that makes sense, I'm just not a big fan of attributes.
from prioritizr.
Yeah, I'm not a big fan of attributes in general either. I really like that prioritizr outputs the Spatial
/Raster
/data.frame
objects as solutions, and the outputs can be immediately used for subsequent analysis. Is there any way we could implement this without resorting to attributes?
from prioritizr.
Not sure. Maybe attributes do make the most sense in this case. Maybe use attributes for now and if we come across a better solution we can adjust?
from prioritizr.
Ok sounds like a plan.
from prioritizr.
Related Issues (20)
- CBC solver error: cannot allocate vector of size 64.9 Gb HOT 7
- add new solver to support HiGHS software HOT 18
- needless conversion from sparse matrix to regular matrix
- shuffle_portfolio(): 'Error in Matrix::sparseMatrix(...) : unused argument (repr = "T")' HOT 7
- boundary_matrix in 7.2.2 fails HOT 11
- Information on use in clusters HOT 6
- CRS error HOT 3
- Warning in presolve_check.OptimizationProblem(compile(x)) HOT 4
- CRAN check NOTE, update to C++17 HOT 3
- Evaluating solutions for problems with tabular inputs HOT 3
- Error: number_of_total_units(x) not equal to nrow(solution@data) HOT 7
- relative target issue HOT 7
- Output resulting in bands HOT 6
- add_boundary_penalty & eval_connectivity_summary issues HOT 7
- ILP vignette HOT 1
- Get Solution cost/quality/objective value HOT 4
- Remaining tasks for version 8 HOT 2
- Boundary penalty & sensitivity analysis HOT 5
- weighting disturbance features for a restoration problem HOT 9
- solve() fails with new highs version
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 prioritizr.