peek(CutthroatAL)
peek(CutthroatAL,n=6)
peek(CutthroatAL,n=6,which=c("id","y1998","y1999","y2000"))
## Make a matrix for demonstration purposes only
mCutthroatAL <- as.matrix(CutthroatAL)
peek(mCutthroatAL)
peek(mCutthroatAL,n=6)
peek(mCutthroatAL,n=6,addrownums=FALSE)
peek(mCutthroatAL,n=6,which=2:4)
## Make a tibble type from dplyr ... note how peek() is not limited by
## the tibble restriction on number of rows to show (but head() is).
if (FALSE) {
if (require(dplyr)) {
CutthroatAL2 <- as_tibble(CutthroatAL)
class(CutthroatAL2)
peek(CutthroatAL2,n=6)
head(CutthroatAL2,n=15)
}
}
Run the code above in your browser using DataLab