Learn R Programming

qwraps2 (version 0.5.2)

ll: List Object Aliases

Description

Aliases for ls providing additional details.

Usage

ll(pos = 1, pattern, order_by = "Size", decreasing = TRUE, head = FALSE, n = 5)

Arguments

pos

specifies the environment as a position in the search list

pattern

an optional regular expression. Only names matching pattern are returned. glob2rx can be used to convert wildcard patterns to regular expressions.

order_by

a character, order the results by “Size” (default), “Type”, “Rows”, or “Columns”.

decreasing

logical, defaults to TRUE, decreasing order? passed to order.

head

logical, if TRUE then only return the first n objects per order_by and decreasing.

n

number of rows to return, ignored if head = FALSE.

References

The basis for this work came from a Stack Overflow posting: https://stackoverflow.com/q/1358003/1104685

See Also

ls

Examples

Run this code
# NOT RUN {
# View your current workspace
# }
# NOT RUN {
ls()
ll()
# }
# NOT RUN {
# View another environment
e <- new.env()
ll(e)

e$fit <- lm(mpg ~ wt, mtcars)
e$fit2 <- lm(mpg ~ wt + am + vs, data = mtcars)
e$x <- rnorm(1e5)
e$y <- runif(1e4)
e$z <- with(e, x * y)
e$w <- sum(e$z)

ls(e)
ll(e)
ll(e, head = TRUE)

# }

Run the code above in your browser using DataLab