Learn R Programming

neuropsychology (version 0.3.0)

describe: Description of dataframes

Description

Describes a vector or the columns in a matrix or data frame.

Usage

describe(df, group=NA)

Arguments

df
A dataframe, matrix or vector.
group
A string indicating the factor by which you want to separate the descriptions.

Value

A list with three components: A list with three components:

Details

describe displays a table of descriptive statistics for numeric, factor and logical variables in the object df. This function relies massively on the PrettyR package. All credits go to its authors.

Examples

Run this code
require(neuropsychology)

df <- personality

describe(df)

describe(df, group="Sex")

Run the code above in your browser using DataLab