occupancy: Calculate feature class occupancies

occupancyR Documentation

Calculate feature class occupancies

Description

Calculate the class occupancies of all features in an AnalysisData object.

Usage

occupancy(d, cls = "class")

## S4 method for signature 'AnalysisData'
occupancy(d, cls = "class")

Arguments

d

S4 object of class AnalysisData

cls

sample information column to use for which to compute class occupancies

Value

A tibble containing feature class proportional occupancies.

Examples

library(metaboData)

d <- analysisData(abr1$neg[,200:300],abr1$fact)

occupancy(d,cls = 'day')

jasenfinch/metabolyseR documentation built on Sept. 18, 2023, 1:25 a.m.