lassie_get: Return the value of 'lassie' object

View source: R/misc.R

lassie_getR Documentation

Return the value of 'lassie' object

Description

Subroutine for lassie methods. Tries to retrieve a value from a lassie object and gives an error if value does not exist.

Usage

lassie_get(x, what_x)

Arguments

x

lassie S3 object.

what_x

vector specifying values to be returned:

  • 'local': local association measure values (default).

  • 'obs': observed probabilities.

  • 'exp': expected probabilities.

  • 'local_p': p-value of local association (after running permtest or chisqtest).

Value

Corresponding array contained in lassie object.

Examples

las <- lassie(trees)
las_array <- lassie_get(las, 'local')


oliviermfmartin/zebu documentation built on Sept. 1, 2023, 9:12 p.m.