powered by
right(x, n = 6) left(x, n=6)
n
x
first
last
head
tail
m <- matrix( 1:100, ncol=10 ) colnames(m) <- paste("Col",1:10, sep="_") left(m) right(m) d <- as.data.frame(m) left(d) right(d)
Run the code above in your browser using DataLab