Site hosted by Build your free website today!

Getting Started with R and S-plus


Getting Started with R and S-plus

Mohammad Ehsanul Karim <>


Copyright © 2003 Mohammad Ehsanul Karim™ v1.1 ®

Permission to reproduce individual copies of this manual for personal use is granted. Multiple copies may be created for nonprofit academic purposes. Using this text for commercial instruction is prohibited without permission. The author takes no responsibility for damage that may result from their use.


Most of the contents of this web-site can be directly downloaded : click here for a zipped file of *.doc type files



Inrtroduction :

If you are a total “newbie” in S-plus (or R; a different non-commercial software originated from same S language; learning any one will be enough to work in another), get at least S-plus 4.0 ® or higher or R 1.3.1 § or higher version and just type the commands after “ > ” sign given here in “commands window” in S-plus or in “R console” in R. In most cases I presented the respective results as well, just in case you like to match your results with me. Also whenever I used # [….] after any command, write the command with out # [….]. Just try yourself; when time comes, you will know by yourself. If you don’t exclude them, don’t worry, the command will still execute in its original format! You know what : you don’t need to know anything (but a little Statistics and Linear Algebra) to learn R / S-plus, cause they themselves will guide you to be correct since software today are built in such a user-friendly way. Command writing perfection is not the necessary to workout any job here. I checked all commands provided here in S-plus 4.0. Have fun while poking around the following commands! Good luck!!

- Contents -

Getting help from S-plus help

Assigning Values to Variables

Arithmatic Operations and built-in functions in S-plus

Removing an object / variable

Working with Vectors

Working in Character mode

Working in Logical mode

Working in Complex mode

Creating Sequential objects

Creating repeatative objects

Matrix Algebra

Using Frames

Using Lists

Working With Missing Values

Matrix Operations

Using Graphs

Making Use of External Resources

Programming with S-plus


This web-site is maintained by -

Mohammad Ehsanul Karim <>

Institute of Statistical Research and Training

University of Dhaka, Dhaka -1000, Bangladesh