cowAnalyze {Animal}R Documentation

Analyze time coded behavior data

Description

This function provides descriptive statistics from time coded behavior datafiles recorded with CowLog.

Usage

cowAnalyze(file = NULL, states = NULL, events = NULL,
 state.names = NULL, event.names = NULL)

Arguments

file CowLog data file, or a file in same format
states A vector with the codes in the file that belong to states
events A vector with codes in the file that belong to events
state.names A character vector with the names for the states
event.names A character vector with the names for the events

Value

state Results for states
event Results for events

Author(s)

Matti Pastell <matti.pastell@helsinki.fi>

References

Hanninen, L. & Pastell, M. CowLog: Open source software for coding behaviors from digital video. Behavior Research Methods. 41(2), 472-476.

http://www.mm.helsinki.fi/~mpastell/CowLog

Examples

##Analyze CowLog datafile named calf1.bh1,
## codes 1-3 are states and codes 4-5 are states.
## The names for the states are lying, standing, walking.
## Not run: 
analyzed <-cowAnalyze(file='calf1.bh1',states=c(1,2,3),
events=c(4,5),state.names=c('lying','standing','walking'))
## End(Not run)
 

[Package Animal version 1.01 Index]