Learn R Programming

ez (version 3.0-1)

ezPrecis: Function to obtain a structure summary of a given data frame.

Description

This function provides a structure summary of a given data frame.

Usage

ezPrecis( 
    data
    , transpose = TRUE
)

Arguments

data
Data frame containing the data to be analyzed.
transpose
Logical. If TRUE (default), triggers tranposition of the resulting summary data frame (useful when there are many columns in the original data frame, leading the untransposed summary data frame to wrap).

Value

  • A data frame containing the descriptive information about each column in the specified data frame:
  • typeThis row indicates the type of data R thinks is in each column. Recall that when R imports data to a data frame, each column is given a label that indicates what type of information is in that column (character, numeric, or a factor data).
  • missingThis row reports a count of the number of missing values in each column.
  • uniqueThis row reports a count of the number of unique values in each column.
  • minThis row reports the minimum value found in each column. If the column data is numeric this is straightforward. If the column data is factored, the first level is reported. If the column data is character, the alphabetically first string is reported.
  • maxThis row reports the maximum value found in each column. If the column data is numeric this is straightforward. If the column data is factored, the last level is reported. If the column data is character, the alphabetically last string is reported.

Details

This function was inspired by the whatis() function from the YaleToolkit package.

See Also

ANT, ANT2, ezANOVA, ezBoot, ezBootPlot, ezCor, ezDesign, ezMixed, link{ezMixedRel}, ezPerm, ezPlot, ezPrecis, ezPredict, ezResample, ezStats, progress_time, progress_timeCI

Examples

Run this code
#Read in the ANT2 data (see ?ANT2).
data(ANT2)
head(ANT2)

#Show a summary of the ANT2 data.
ezPrecis(ANT2)

Run the code above in your browser using DataLab