ABSTRACT

This chapter addresses some basic methods of accessing and extracting data contained in the typical data structures used to store data in, which include vectors, factors, lists, and data frames. Illustrations on searching through and extracting data from vectors and factors are used to set the stage in using specialized logical-valued functions, logical and relational operators, and compound logical and/or relational statements to find data. The ideas introduced in earlier examples are then extended to data frames and lists after approaches to accessing the contents of lists and data frames are demonstrated. The chapter closes with a further discussion on certain characteristics of R functions, particularly with regard to how they are presented in this book, and suggestions on how argument assignments within function calls are made.