Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Specimen OOP #42

Closed
jasonratcliff opened this issue Apr 3, 2021 · 0 comments · Fixed by #62
Closed

Implement Specimen OOP #42

jasonratcliff opened this issue Apr 3, 2021 · 0 comments · Fixed by #62
Labels
Book • Methods Thesis | Methods Development Development tools / scripts

Comments

@jasonratcliff
Copy link
Owner

jasonratcliff commented Apr 3, 2021

After some experimentation with implementing S4 methods, the R6 OOP system appears to be a good candidate for this particular use case. Specifically, the reference semantics (i.e., modify-in-place / mutability) and method chaining will allow for various subsetting actions followed plotting with on-the-fly calculation of ggplot2 scale and theme values. Actions that have previously been exported superfluously can move to public / private methods related to either the superclass or subclasses for mapping / phylogenetic analysis.

Initially, create superclass for specimen records and associated methods to:

  • Subset by geographic coordinate
  • Filter by specimen annotation
  • Find specimen record(s) by collector or collection
@jasonratcliff jasonratcliff transferred this issue from another repository May 8, 2021
@jasonratcliff jasonratcliff changed the title Implement OOP for Map Functions Implement S4 OOP Apr 1, 2022
@jasonratcliff jasonratcliff changed the title Implement S4 OOP Implement Specimen OOP Apr 2, 2022
@jasonratcliff jasonratcliff added Book • Methods Thesis | Methods Development Development tools / scripts labels Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Book • Methods Thesis | Methods Development Development tools / scripts
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant