calcAttribMeans: Calculate average values by attribute

Description Usage Arguments Value Examples

Description

This function is used to calculate the average values (sleep/activity/whatever) of your data by an attribute. For instance, this could be used to calculate the average sleep values for each genotype.

Usage

1
calcAttribMeans(obj, attribute, ..., vector)

Arguments

obj

A valid DAM S4 object (created by newExperiment)

attribute

Which attribute you would like to use to analyze your data by, e.g. "genotype"

vector

A vector of values to use for mean calculation instead of using those in actual DAM object obj.

Value

A matrix of values with the average and standard error for each attribute category

Examples

1
2
3
sleep <- dropDead(DAM_DD)
sleep <- calcSleep(sleep)
calcAttribMeans(sleep, "genotype")

jstaf/actmon documentation built on May 20, 2019, 2:11 a.m.