Abstract
This chapter covers some common functions in R. The first section discusses the options() function, which sets the default options for R. The second section describes the round(), signif(), and noquote() functions, which are used in formatting objects. The third section discusses the format(), print(), and plot() functions for displaying objects. The functions in the third section operate differently on different classes of objects, so they are generic functions. The fourth section goes over the eval(), attributes(), attr(), and summary() functions. The functions return evaluated expressions, the attributes of an object, a specific attribute of an object, and a summary of the contents of an object, respectively. The eval() and summary() functions are generic functions, but eval() has just one method. The fifth section introduces the deriv(), numericDeriv(), and integrate() functions. The functions take derivatives of or integrate numeric vectors. The parse() and deparse() functions are covered in the sixth section. The functions read and return text and attempt to interpret the text as R language. In the seventh section, we cover the anova(), coef(), effects(), residuals(), fitted(), vcov(), confint(), and predict() functions. The functions operate specifically on models and are generic functions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Tollefson, M. (2022). Some Common Functions. In: R 4 Quick Syntax Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7924-3_15
Download citation
DOI: https://doi.org/10.1007/978-1-4842-7924-3_15
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-7923-6
Online ISBN: 978-1-4842-7924-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)