dnumeric: Create standard descriptive statistics

Description Usage Arguments Value See Also Examples

View source: R/dnumeric.R

Description

Wrapper for psych::describe that adds the name of the dataset and the variable being examined to its output. Used in dtable for multiple variables.

Usage

1
dnumeric(data, vnames, neat = TRUE, sizesort = FALSE)

Arguments

data

a data.frame

vnames

a single variable name to examine with psych::describe

neat

logical, returns rounded values if TRUE

sizesort

logical, returns sorted data by mean if TRUE

Value

Returns a data.frame with common descriptive statistics for a numeric variable, as defined in psych::describe, concatenated with the name of the dataset and the name of the variable.

See Also

See dtable

See describe for more details on the descriptive statistics returned

Examples

1
2
3
4
# Single variable
dnumeric(iris2, "Sepal.Length")

# Use \link{\code{dtable}} for multiple variables

gitronald/demotables documentation built on May 17, 2019, 5:30 a.m.