In this section we investigate how to work with R ingeneral, without special reference to event history analysis, which will be treatsed separately in a later section in this chapter.