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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights 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)