For objects that contain more than one element (vectors, matrices, arrays, data frames, and lists), subscripting is used to access some or all of those elements. Besides the usual numeric subscripts, R allows the use of character or logical values for subscripting. Subscripting operations are very fast and efficient, and are often the most powerful tool for accessing and manipulating data in R. The next subsections describe the different type of subscripts supported by R, and later sections will address the issues of using subscripts for particular data types.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2008 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
(2008). Subscripting. In: Data Manipulation with R. Use R!. Springer, New York, NY. https://doi.org/10.1007/978-0-387-74731-6_6
Download citation
DOI: https://doi.org/10.1007/978-0-387-74731-6_6
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-387-74730-9
Online ISBN: 978-0-387-74731-6
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)