Skip to main content

Some Common Functions

  • Chapter
  • First Online:
R 4 Quick Syntax Reference
  • 937 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+
from €37.37 /Month
  • Starting from 10 chapters or articles per month
  • Access and download chapters and articles from more than 300k books and 2,500 journals
  • Cancel anytime
View plans

Buy Now

eBook
EUR 17.99
Price includes VAT (Netherlands)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
EUR 59.94
Price includes VAT (Netherlands)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics