This book is different from other R language Reference books in hand, and mainly interprets the R language from a programmatic perspective, not from a statistical perspective. Because these are not considered in depth, the code is often a collection of commands, not a "program", so hopefully learning this book will improve programming efficiency and make you more like a "programmer".
This article corresponds to the "R Language Programming Art" Chapter 1th: Quick Start.
The function C () that generates the vector, where C means "connection" (concatenate)
How to print a list:
Print (ListName)
STR (listname)
The first one prints all the information, the second is just the display object structure (structure), not limited to the list, and applies to all R objects.
The concept of class: Most R objects are class-based. An instance of a class is generally a list of R, but it comes with an attribute (attribute): Class name (attr (, "class"))
The concept of a class is used in generic functions, which have similar functions, but are applicable to certain classes.
such as the summary () function, is actually a family of functions, for different classes, will call different functions for processing; the plot () function is also a generic function that can be used for different r objects, and for a specific class, the appropriate paint function is found.
R Language Programming Art (1) Quick Start