Learn R Programming

descriptr (version 0.6.1)

ds_measures_symmetry: Measures of symmetry

Description

Returns the measures of symmetry such as skewness and kurtosis.

Usage

ds_measures_symmetry(data, ..., decimals = 2)

Arguments

data

A data.frame or tibble.

...

Column(s) in data.

decimals

An option to specify the exact number of decimal places to use. The default number of decimal places is 2.

Details

n reports the number of non-missing observations and the measures are computed from the non-missing values, for both vector and data-frame input. A variable with no non-missing observations returns n = 0 and NA for every measure.

Examples

Run this code
# single column
ds_measures_symmetry(mtcarz, mpg)

# multiple columns
ds_measures_symmetry(mtcarz, mpg, disp)

# all columns
ds_measures_symmetry(mtcarz)

# vector
ds_measures_symmetry(mtcarz$mpg)

# vectors of different length
disp <- mtcarz$disp[1:10]
ds_measures_symmetry(mtcarz$mpg, disp)

# decimal places
ds_measures_symmetry(mtcarz, disp, hp, decimals = 3)

Run the code above in your browser using DataLab