Learn R Programming

MorphoTools2 (version 1.0.2.1)

shapiroWilkTest: Shapiro-Wilk Normality Test

Description

Calculates the Shapiro-Wilk normality test of characters for taxa.

Usage

shapiroWilkTest(object, p.value = 0.05)

Value

A data.frame, storing results of Shapiro-Wilk normality test.

Arguments

object

an object of class morphodata.

p.value

a number or NA are acceptable. In the case of number, the output will be formatted as "normally distributed" or "NOT normally distributed". In the case of NA, exact p-values will be returned.

Examples

Run this code
data(centaurea)

sW = shapiroWilkTest(centaurea)

if (FALSE) exportRes(sW, file = "sW_test.txt")

sW = shapiroWilkTest(centaurea, p.value = NA)

if (FALSE) exportRes(sW, file = "sW_test.txt")

Run the code above in your browser using DataLab