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

Main Data Structures #5

Open
26 of 34 tasks
coatless opened this issue Jan 16, 2017 · 1 comment
Open
26 of 34 tasks

Main Data Structures #5

coatless opened this issue Jan 16, 2017 · 1 comment

Comments

@coatless
Copy link
Collaborator

coatless commented Jan 16, 2017

  • RObject
    • Policy-based design
    • List main policies
  • Vector
    • 1D homogenous array
    • Policies
    • typedefs
    • constructors
    • warn about pointer structure
    • example creations (include clone)
  • Matrix
    • 2D homogeneous class built on vector
    • policies
    • typedefs
    • constructors
    • warn about pointer structure
    • example creations (include clone)
  • List (even though it's really just a Vector in disguise)
    • 1D heterogenous array typedef of vector
    • note different initialization values (not 0, defaults to NULL)
    • example creations of named/unnamed with shorthand _["a"]
  • DataFrame
    • 2D heterogenous typedef of DataFrame_Impl extends Vector
    • emphasis special creation
    • example creations of named with shorthand _["a"]
    • note that unnamed DataFrames throw an error.
  • Date
    • single unit connect w/ DateVector
    • constructors
    • examples
  • Datetime
    • single unit connect w/ DatetimeVector
    • constructors
    • examples
@eddelbuettel
Copy link
Collaborator

I would mention RObject as it is a cleaner alternative to using SEXP when you need something like a union type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants