1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
\name{ll}
\alias{ll}
\title{
Display Information about Objects or Elements
}
\description{
Display name, class, size, and dimensions of each object in a given
environment. Alternatively, if the main argument is a list-like
object, its elements are listed and described.
}
\usage{
ll(pos=1, unit=c("KB","MB","bytes"), digits=0, dimensions=FALSE,
function.dim="", ...)
}
\arguments{
\item{pos}{environment position number, environment name, data frame,
list, model, or any object that \code{is.list()}.}
\item{unit}{required unit for displaying object size: "bytes", "KB",
"MB", or first letter.}
\item{digits}{number of decimals to display when rounding object
size.}
\item{dimensions}{whether object dimensions should be returned.}
\item{function.dim}{value to report as the dimension of function
objects.}
\item{...}{passed to \code{ls()}.}
}
\details{
A verbose alternative to \code{ls()} and \code{names()}.
}
\value{
A data frame with named rows and the following columns:
\item{Class}{object class.}
\item{KB}{object size \emph{(see notes)}.}
\item{Dim}{object dimensions \emph{(optional)}.}
}
\note{
The name of the object size column is the same as the unit used.
}
\author{Arni Magnusson \email{arnima@u.washington.edu}, with a
contribution by Jim Rogers
\email{james\_a\_rogers@groton.pfizer.com}.}
\seealso{
\code{\link{ls}} displays names of objects in a given environment.
\code{\link[base]{names}}, \code{\link[utils]{str}}, and
\code{\link[base]{summary}} display different information about
list-like elements.
\code{\link{env}} is related to \code{ll}.
}
\examples{
ll()
ll(all=TRUE)
ll("package:base")
ll("package:base")[ll("package:base")$Class!="function",]
data(infert)
ll(infert)
model <- glm(case~spontaneous+induced, family=binomial, data=infert)
ll(model, dim=TRUE)
ll(model$family)
}
% Basics
\keyword{data}
\keyword{attribute}
\keyword{classes}
\keyword{list}
% Programming
\keyword{environment}
\keyword{print}
\keyword{utilities}
|