Skip to main content

Data Structures: Part One

  • Chapter
  • First Online:
Seamless R and C++ Integration with Rcpp

Part of the book series: Use R! ((USE R,volume 64))

  • 10k Accesses

Abstract

This chapter first discusses the RObject class at the heart of the Rcpp class system. While RObject is not meant to be used directly, it provides the foundation upon which many important and frequently-used classes are built. We then introduce the two core vector types NumericVector and IntegerVector. Other related vector types are briefly discussed at the end of the chapter.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    See the header file include/Rcpp/RObject.h for details.

  2. 2.

    Member functions dealing with slots are only applicable to S4 objects; otherwise an exception is thrown.

  3. 3.

    More details are at http://en.wikipedia.org/wiki/Perfect_number.

References

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 The Author

About this chapter

Cite this chapter

Eddelbuettel, D. (2013). Data Structures: Part One. In: Seamless R and C++ Integration with Rcpp. Use R!, vol 64. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-6868-4_3

Download citation

Publish with us

Policies and ethics