I am wondering if it is possible to move one row from bottom to top of a table. When I use the code I have so far,
dt[nrow(dt)+1,] <- rbind(c(\"\",\"\",\"
There are a few ways but here are two easy ones:
a <- data.frame(x = 1:10, y = 20:29) a <- a[c(10,1:9),] a ##Or a <- data.frame(x = 1:10, y = 20:29) a <- rbind(a[10,],a[1:9,]) a