freqActor: Frequency of an animal was actor

View source: R/replacement.R

freqActorR Documentation

Frequency of an animal was actor

Description

Function to identify frequency that one animal was actor regarding the herd at bins.

Usage

freqActor(x)

Arguments

x

dataset with replacements information.

Details

freqActor is only applied for dataset with columns ordained and named as follows: actor and reactor.

Value

Frequency of an animal was an actor

Author(s)

Julia P. S. Valente, Matheus Deniz, Karolini T. de Sousa.

Examples

x <- data.frame(actor = c(6,3,5,4,2,1,3,5,8,6,9,3,2,1,1),
               reactor = c(2,6,3,5,4,2,1,3,5,1,6,4,3,2,5))                
                                   
freqA <- freqActor(x)                                                
                                                           
print(freqA)


socialh documentation built on Oct. 25, 2022, 5:05 p.m.