R Program to extract first two rows from a given data frame

R Program to extract first two rows from a given data frame.