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
I would use: tail(d, 2) or d[(n-1):n, ] Hope it helps
tail(d, 2)
d[(n-1):n, ]