This appendix provides the solutions for the end-of-chapter exercises located in Chapters 1–12.
To install the coin library/package you need to type the following command:
Note that the name must be in quotes. Then you select the closest mirror site and the package is downloaded and installed for you.
To load the coin library and make it ready to use you type the following:
Once the library is active its commands are available for you to use. You can try to bring up the help entry for the package using the following:
This does not work for all packages; a better alternative is to use the HTML help system by typing:
This opens the main R help files in your default browser. You can now follow the links to the packages and then find coin from the list.
The MASS package is already loaded as part of the R installation but is not ready to use until you type:
Once you have the library available you can open the help entry using:
You can use the search() command to get a list of objects that are available for use.
To clear the coin package from memory (and remove it from the search() path), type the following:
You can use either the c() command or the scan() command to enter these data. The problem is that ...