Suppose I read a csv file into a data frame called \"d\". I wish to print the last 2 rows of this data frame. I tried the below but it is printing all the content starting f
You can just use tail
tail(d, 2)
Will give the last two rows.