headtail(iris)
headtail(iris,10)
headtail(iris,which=c("Sepal.Length","Sepal.Width","Species"))
headtail(iris,which=grep("Sepal",names(iris)))
headtail(iris,n=200)
## Make a matrix for demonstration purposes only
miris <- as.matrix(iris[,1:4])
headtail(miris)
headtail(miris,10)
headtail(miris,addrownums=FALSE)
headtail(miris,10,which=2:4)
## Make a tibble type from tibble ... note how headtail() is not limited by
## the tibble restriction on number of rows to show (but head() is).
if (FALSE) {
if (require(tibble)) {
iris2 <- as_tibble(iris)
class(iris2)
headtail(iris2,n=15)
head(iris2,n=15)
}
}
Run the code above in your browser using DataLab