Skip to content

Commit

Permalink
started on #220 overloading [ and [[ methods, but commented out for now
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Jul 26, 2016
1 parent 577055a commit 2000fb7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
22 changes: 22 additions & 0 deletions R/overload_classes.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# gbif class sub-setters -------------------
# `[[.gbif` <- function(x, i) {
# #y <- NextMethod()
# if (inherits(i, "character")) {
# tmp <- x[names(x) %in% i][[1]]
# } else {
# tmp <- x[[i]]
# }
# structure(tmp, class = "gbif",
# args = attr(x, 'args'),
# type = 'single',
# return = attr(x, 'return'))
# #x[names(x) %in% i][1]
# }

# `[.gbif` <- function(x, i) {
# tmp <- x[names(x) %in% i]
# structure(tmp, class = "gbif",
# args = attr(x, 'args'),
# type = 'single',
# return = attr(x, 'return'))
# }
3 changes: 0 additions & 3 deletions man/occ_search.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2000fb7

Please sign in to comment.