head(letters, n=3)
headtail(letters)
headtail(letters, n=3)
headtail(letters, n=3, na=TRUE)
head(letters, n=-10)
headtail(letters, n=-10, na=TRUE) # doesn't make sense for headtail
head(freeny.x, n=3) # matrix
headtail(freeny.x, n=3, na=TRUE) # no names for head-part
headtail(women, n=3, na=TRUE) # data.frame works fine
head(freeny.y, n=3)
headtail(freeny.y, n=3, na=TRUE)
head(library, n=3)
headtail(library, n=3, na=TRUE)
headtail(library, na=TRUE)
ftable(Titanic)
head(stats::ftable(Titanic), n=4)
headtail(stats::ftable(Titanic), n=4, na=TRUE)
head(table(sample(1:9, 30, TRUE)), n=3)
headtail(table(sample(1:9, 30, TRUE)), n=3, na=TRUE)
head(table(state.division, state.region), n=3)
headtail(table(state.division, state.region), n=3, na=TRUE)
Run the code above in your browser using DataLab