This function provides a structure summary of a given data frame.
ezPrecis(
data
, transpose = TRUE
)A data frame containing the descriptive information about each column in the specified data frame:
This 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).
This row reports a count of the number of missing values in each column.
This row reports a count of the number of unique values in each column.
This 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.
This 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.
Data frame containing the data to be analyzed.
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).
Michael A. Lawrence mike.lwrnc@gmail.com
Visit the ez development site at https://github.com/mike-lawrence/ez
for the bug/issue tracker and the link to the mailing list.
This function was inspired by the whatis() function from the YaleToolkit package.
ezDesign
#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