Cargando…

R quick syntax reference /

The R Quick Syntax Reference is a handy reference book detailing the intricacies of the R language. Not only is R a free, open-source tool, R is powerful, flexible, and has state of the art statistical techniques available. With the many details which must be correct when using any language, however...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Tollefson, Margot (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Berkeley, CA : Apress, 2014.
Colección:Expert's voice in R.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • At a Glance
  • Contents
  • About the Author
  • About the Technical Reviewer
  • Acknowledgments
  • Introduction
  • Part 1: R Basics
  • Chapter 1: Downloading R and Setting Up a File System
  • Downloading R
  • Windows
  • OS X
  • Linux
  • Installing and Updating Packages
  • Windows
  • OS X
  • Updating R
  • Windows
  • OS X
  • Using R in Separate Folders
  • Windows
  • OS X
  • Linux
  • Chapter 2: The R Prompt
  • The Three Parts of R: Objects, Operators, and Assignments
  • The R Prompt
  • An Example of a Calculation
  • Chapter 3: Assignments and Operators
  • Types of Assignment
  • Example of Three Types of Assignment
  • The ls() and rm() Functions
  • Operators
  • Logical Operators and Functions
  • Arithmetic Operators
  • Matrix Operators and Functions
  • Relational Operators
  • Subscripting Operators
  • Vectors
  • Matrices
  • Arrays
  • Lists
  • Other Types
  • Odds and Ends
  • Part 2: Kinds of Objects
  • Chapter 4: Modes of Objects
  • Overview of the Modes
  • Commonly Used Modes
  • Atomic, Recursive, and Language Modes
  • Some Functions for Atomic Modes
  • The NULL Mode
  • The Logical Mode
  • The Numeric Mode
  • The Complex Mode
  • The Raw Mode
  • The Character Mode
  • The Common Recursive and Language Modes
  • The List Mode
  • The Function Mode
  • The Call Mode
  • The Name Mode
  • The Expression Mode
  • The S4 Mode
  • Chapter 5: Classes of Objects
  • Some Basics on Classes
  • Vectors
  • Some Common Classes
  • The Matrix Class: matrix
  • The Array Class: array
  • The Time Series Classes: ts and mts
  • The Factor Classes: factor and ordered
  • The Data Frame Class: data.frame
  • The Date and Time Classes: Date, POSIXct, POSIXlt, and difftime
  • Names for Vectors, Matrices, Arrays, and Lists
  • Part 3: Functions
  • Chapter 6: Packaged Functions
  • The Libraries
  • Default Packages and Primitive Functions
  • Using the Help Pages
  • Title.
  • Description
  • Usage
  • Arguments
  • Details
  • Value
  • Some Other Optional Sections
  • References
  • See Also
  • Examples
  • Chapter 7: User-Created Functions
  • The Structure of a Function
  • How to Enter a Function into R
  • Using an Editor
  • Inline Entry
  • An Outside Editor: dget() and Copying and Pasting
  • Chapter 8: How to Use a Function
  • Calling a Function
  • Arguments
  • The Output from a Function
  • Part 4: Inputting and Creating Data, Outputting Data and Output, and Manipulating Objects
  • Chapter 9: Importing and Creating Data
  • Reading Data into R, Including R Data Sets
  • The Function scan()
  • The Functions read.table(), read.csv(), and read.delim()
  • R Data Sets
  • Other Functions to Import Files
  • Probability Distributions and the Function sample()
  • Probability Distributions
  • The Function sample()
  • Manually Entering Data and Generating Data with Patterns
  • The Function c()
  • The Functions seq() and rep()
  • The Function seq()
  • The Function rep()
  • Combinatorics and Grid Expansion
  • The Function Paste
  • Chapter 10: Exporting from R
  • The Function dump()
  • The Function sink()
  • The Function write()
  • The Function write.matrix()
  • The Functions write.table() and write.csv()
  • The Function dput()
  • Other Exporting Functions
  • Chapter 11: Descriptive Functions and Manipulating Objects
  • Descriptive Functions
  • The Function dim()
  • The Functions nrow(), ncol(), NROW(), and NCOL()
  • The Function length()
  • The Function nchar()
  • Manipulating Objects
  • The Functions cbind() and rbind()
  • The Apply Functions
  • The Function apply()
  • The lapply(), sapply(), and vapply() Functions
  • The Function lapply()
  • The Function sapply()
  • The Function vapply()
  • The Function tapply()
  • The Function mapply()
  • The sweep() and scale() Functions
  • The Function sweep()
  • The Function scale().
  • The Functions aggregate(), table(), tabulate(), and ftable()
  • The Function aggregate()
  • Data Frames
  • Time Series
  • The Functions table(), as.table(), and is.table()
  • The Function tabulate()
  • The Function ftable()
  • Part 5: Flow Control
  • Chapter 12: Flow Control
  • Brackets "{ }" and the Semicolon "
  • "
  • The "if" and "if/else" Control Statements
  • The "while" Control Statement
  • The "for" Control Statement
  • The "repeat" Control Statement
  • The Statements "break" and "next"
  • Nesting
  • Chapter 13: Examples of Flow Control
  • Nested 'for' Loops with an 'if/else' Statement
  • Using Indices
  • A 'while' Loop
  • Using Indices
  • Nested 'for' Loops
  • Using Indices
  • A 'for' Loop, 'if' Statement, and 'next' Statement
  • Using Indices
  • A 'for' Loop, a 'repeat' Loop, an 'if' Statement, and a 'break' Statement
  • Using Indices
  • Chapter 14: The Functions ifelse() and switch()
  • The Function ifelse()
  • The Function switch()
  • Part 6: Some Common Functions, Packages, and Techniques
  • Chapter 15: Some Common Functions
  • The Function options()
  • The Functions round(), signif(), and noquote()
  • The Function round()
  • The Function signif()
  • The Function noquote()
  • The Function cat()
  • The Functions format(), print(), plot(), and summary()
  • The Function format()
  • The Function print()
  • The Function plot()
  • The Function summary()
  • Some Functions for Models: anova(), coef(), effects(), residuals(), fitted(), vcov(), confint(), and predict()
  • Chapter 16: The Packages base, stats, and graphics
  • The base Package
  • Reserved Words
  • Built-In Constants
  • Trigonometric and Hyperbolic Functions
  • Beta- and Gamma-Related Functions
  • Miscellaneous Mathematical Functions
  • Complex Numbers
  • Matrices, Arrays, and Data Frames
  • A Few Other Functions and Some Comments
  • The stats Package.
  • Basic Descriptive Statistics
  • Some Functions That Do Tests
  • Some Modeling Functions in stats
  • Clustering Algorithms and Other Multivariate Techniques
  • The graphics Package
  • Chapter 17: Tricks of the Trade
  • Value Substitution: NA, NaN, Inf, and -Inf
  • If Statements and Logical Vectors
  • Lists and the Functions list() and c()
  • Getting Data out of Functions
  • Recursive Functions
  • Some Final Comments
  • Index.