
Last chance! 50% off unlimited learning
Sale ends in
Print a short summary of the contents of an object. Most useful as a way to get a quick overview of the variables in data frame.
inspect(object, ...)# S3 method for list
inspect(object, max.level = 2, ...)
# S3 method for character
inspect(object, ...)
# S3 method for logical
inspect(object, ...)
# S3 method for numeric
inspect(object, ...)
# S3 method for factor
inspect(object, ...)
# S3 method for Date
inspect(object, ...)
# S3 method for POSIXt
inspect(object, ...)
# S3 method for data.frame
inspect(object, select = TRUE, digits = getOption("digits", 3), ...)
# S3 method for inspected_data_frame
print(x, digits = NULL, ...)
a data frame or a vector
additional arguments passed along to specific methods
an integer giving the depth to which lists should be expanded
a logical, character (naming variables), or numeric vector or a
function used to select variables to which FUN
is applied. If a function,
it should take a vector as input and return a single logical. See examples here and
at link{dfapply}
.
and integer giving the number of digits to display
an object
if (require(mosaicData)) {
inspect(Births78)
inspect(Births78, is.numeric)
}
Run the code above in your browser using DataLab