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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
See the header file include/Rcpp/RObject.h for details.
- 2.
Member functions dealing with slots are only applicable to S4 objects; otherwise an exception is thrown.
- 3.
More details are at http://en.wikipedia.org/wiki/Perfect_number.
References
R Development Core Team (2012b) R internals. R Foundation for Statistical Computing, Vienna, Austria, URL http://CRAN.R-Project.org/doc/manuals/R-ints.html, ISBN 3-900051-14-3
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4614-6868-4_3
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-6867-7
Online ISBN: 978-1-4614-6868-4
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)