Commit 28f7ed14 authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

feat(Utils): add a .IndexOutputs function to index OutputsModel objects

- to be replaced by '[.OutputsModel' in airGR 2.0
Refs # 122
Showing with 13 additions and 12 deletions
+13 -12
...@@ -218,16 +218,17 @@ ...@@ -218,16 +218,17 @@
res res
} }
.IndexOutputsModel <- function(x, i) {
# '[.OutputsModel' <- function(x, i) { # '[.OutputsModel' <- function(x, i) {
# if (!inherits(x, "OutputsModel")) { if (!inherits(x, "OutputsModel")) {
# stop("'x' must be of class 'OutputsModel'") stop("'x' must be of class 'OutputsModel'")
# } }
# if (is.factor(i)) { if (is.factor(i)) {
# i <- as.character(i) i <- as.character(i)
# } }
# if (is.numeric(i)) { if (is.numeric(i)) {
# .ExtractOutputsModel(x, i) .ExtractOutputsModel(x, i)
# } else { } else {
# NextMethod() NextMethod()
# } }
# } }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment