Skip to main content
  • 7432 Accesses

Abstract

Computer programs are written for solving problems on computers. Each program has input(s) and output(s) and is based on an algorithm that describes the procedure to attack and solve a given problem. Efficiency and accuracy are two aspects that should be considered carefully when implementing algorithms and writing programs. In addition to inputs and outputs, programs often contain constants and variables that are not visible to users. Each of these items (inputs, outputs, constants, and variables) can be a scalar, vector or matrix. This introductory chapter starts with the programming concept, where we discuss various aspects of programs and algorithms. We consider a simple omelette-cooking algorithm to understand the basic principles of programming. Then, we list the common properties of computer programs, followed by some notes on programming in R, particularly by using the function concept. Finally, matrices and vectors, as well as their representations in R, are briefly discussed.

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover 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

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag London

About this chapter

Cite this chapter

Ergül, Ö. (2013). Introduction. In: Guide to Programming and Algorithms Using R. Springer, London. https://doi.org/10.1007/978-1-4471-5328-3_1

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-5328-3_1

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-5327-6

  • Online ISBN: 978-1-4471-5328-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics