Appling R coding on the medical data from a given file data.csv, which is a dataset of a patient demographic containing standard information regarding individuals from a variety of ancestral lines.