factor() will be explained in page 114 and df will be in page 63/close #5